We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e5c9cd commit 56e0833Copy full SHA for 56e0833
localtests/test.sh
@@ -95,7 +95,18 @@ test_single() {
95
echo_dot
96
bash $exec_command_file 1> $test_logfile 2>&1
97
98
- if [ $? -ne 0 ] ; then
+ execution_result=$?
99
+
100
+ if [ -f $tests_path/$test_name/expect_failure ] ; then
101
+ if [ $execution_result -eq 0 ] ; then
102
+ echo
103
+ echo "ERROR $test_name execution was expected to exit on error but did not. cat $test_logfile"
104
+ return 1
105
+ fi
106
+ return 0
107
108
109
+ if [ $execution_result -ne 0 ] ; then
110
echo
111
echo "ERROR $test_name execution failure. cat $test_logfile"
112
return 1
0 commit comments