Skip to content
Snippets Groups Projects
Commit 8727af5b authored by József Gyürüsi's avatar József Gyürüsi
Browse files

nadia_fix2: fixing error code handling


Change-Id: I04e2ad79cb1fbc042234222f3314ecf021964bbb
Signed-off-by: default avatarJózsef Gyürüsi <jozsef.gyurusi@ericsson.com>
parent a345d1c4
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,9 @@ if [ "$?" == "0" ]; then ...@@ -24,8 +24,9 @@ if [ "$?" == "0" ]; then
echo "INFO: Running the tests" echo "INFO: Running the tests"
python3 runTests.py python3 runTests.py
if [ "$?" == "0" ]; then result=$?
echo "ERROR: Running of the tests failed" if [ "$result" != "0" ]; then
echo "ERROR: Running of the tests failed. Exit status: $result"
exit 1 exit 1
fi fi
...@@ -49,8 +50,9 @@ else ...@@ -49,8 +50,9 @@ else
export DISPLAY=:999.0 export DISPLAY=:999.0
chmod u+x runTests.py chmod u+x runTests.py
result=$(python3 runTests.py) python3 runTests.py
if [ "$result" == "0" ]; then result=$?
if [ "$result" != "0" ]; then
echo "ERROR: Running of the tests failed. Exit status: $result" echo "ERROR: Running of the tests failed. Exit status: $result"
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment