test.testers: fix getAllOutputNames not found

This commit is contained in:
Artturin 2023-01-17 20:34:36 +02:00
parent 44425dc5ab
commit 40197595ce

View File

@ -34,6 +34,15 @@ echo "testBuildFailure: Original builder produced exit code: $r"
# -----------------------------------------
# Write the build log to the default output
#
# # from stdenv setup.sh
getAllOutputNames() {
if [ -n "$__structuredAttrs" ]; then
echo "${!outputs[*]}"
else
echo "$outputs"
fi
}
outs=( $(getAllOutputNames) )
defOut=${outs[0]}