Commit 0cb57d32 authored by Jan Kiene's avatar Jan Kiene
Browse files

correct exit code to trigger failure on error

parent 2333fdca
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ msan-on-merge-request-linux:
    - make -j CLANG=1
    - python3 scripts/self_test.py --create | tee test_output.txt
    - run_errors=$(cat test_output.txt | grep -ic "run errors") || true
    - if [ $run_errors != 0 ] ; then echo "Run errors in self_test.py with Clang memory-sanitizer"; exit $EXIT_CODE_FAIL; fi
    - if [ $run_errors != 0 ] ; then echo "Run errors in self_test.py with Clang memory-sanitizer"; exit 1; fi


# code selftest testvectors with address-sanitizer binaries
@@ -162,7 +162,7 @@ asan-on-merge-request-linux:
    - make -j CLANG=2
    - python3 scripts/self_test.py --create | tee test_output.txt
    - run_errors=$(cat test_output.txt | grep -ic "run errors") || true
    - if [ $run_errors != 0 ] ; then echo "Run errors in self_test.py with Clang address-sanitizer"; exit $EXIT_CODE_FAIL; fi
    - if [ $run_errors != 0 ] ; then echo "Run errors in self_test.py with Clang address-sanitizer"; exit 1; fi


# compare bit exactness between target and source branch