testers.testBuildFailure: Fix

A call to getAllOutputNames was added as part of the structuredAttrs
effort, but this script does not source `setup.sh`, so I repeat the
definition here.
Should be a bit quicker than `source setup.sh`.
This commit is contained in:
Robert Hensing 2023-01-16 12:49:09 +01:00
parent 01d7f19346
commit d16e068b14

View File

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