mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 00:46:17 +00:00
lib/tests: don't use hard error status to indicate test failure
An exit status of 99 is reported separately in the test summary as an error, rather than as a test failure. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
03a4ad16d1
commit
b441e6ac2a
@ -48,20 +48,20 @@ for test in $TESTLIST; do
|
|||||||
|
|
||||||
# check invalid option handling
|
# check invalid option handling
|
||||||
echo " Checking invalid option handling..."
|
echo " Checking invalid option handling..."
|
||||||
./$test --invalid-option 2> /dev/null && exit 99
|
./$test --invalid-option 2> /dev/null && exit 1
|
||||||
|
|
||||||
# check valid options succeed
|
# check valid options succeed
|
||||||
echo " Checking valid option handling..."
|
echo " Checking valid option handling..."
|
||||||
./$test --help > /dev/null || exit 99
|
./$test --help > /dev/null || exit 1
|
||||||
|
|
||||||
# check --list-subtests works correctly
|
# check --list-subtests works correctly
|
||||||
echo " Checking subtest enumeration..."
|
echo " Checking subtest enumeration..."
|
||||||
./$test --list-subtests > /dev/null
|
./$test --list-subtests > /dev/null
|
||||||
if [ $? -ne 0 -a $? -ne 79 ]; then
|
if [ $? -ne 0 -a $? -ne 79 ]; then
|
||||||
exit 99
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check invalid subtest handling
|
# check invalid subtest handling
|
||||||
echo " Checking invalid subtest handling..."
|
echo " Checking invalid subtest handling..."
|
||||||
./$test --run-subtest invalid-subtest > /dev/null 2>&1 && exit 99
|
./$test --run-subtest invalid-subtest > /dev/null 2>&1 && exit 1
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user