compose-tests: Rename dir based on failure
Should make it easier to tell which compose test failed rather than going through the verbose output of parallel. Closes: #1488 Approved by: jlebon
This commit is contained in:
parent
588a0327db
commit
1c899c5e9e
@ -7,4 +7,11 @@ mkdir -p ${TEST_ARTIFACTS}
|
||||
# Redirect our stdout/stderr, since we don't want what GNU parallel does
|
||||
exec 1>${TEST_ARTIFACTS}/output.txt
|
||||
exec 2>&1
|
||||
exec $(dirname $0)/${tf}
|
||||
# Rename the dir itself if non-zero rc to make it easy to know what failed
|
||||
rc=0
|
||||
$(dirname $0)/${tf} || rc=$?
|
||||
if [ $rc == 0 ]; then
|
||||
mv ${TEST_ARTIFACTS}{,.pass}
|
||||
else
|
||||
mv ${TEST_ARTIFACTS}{,.fail.$rc}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user