Commit 55bf8bfa authored by Jan Kiene's avatar Jan Kiene
Browse files

make ret_val=1 overwrite ret_val=123

if crashes occur (ret_val=1) and at the same time a change in complexity
numbers is detected (ret_val=123), the number change previously overwrote
the crashes so that the global return value did not reflect the crashes
parent 827fc94b
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -135,12 +135,14 @@ else
  python3 ci/complexity_measurements/genWebpageData.py --wmops_per_op_log ${wmopsFilenameFlc}_WMOPS.csv --rom_log ${log_rom_all}
fi

ret_val=0
python3 ${scriptDir}/check_for_changes.py --wmops_logfiles $(ls ${destDir}/wmops/log_wmops_all*.txt) --ram_logfiles $(ls ${destDir}/wmops/log_ram_all*.txt) --rom_logfile ${destDir}/wmops/log_rom_all.txt
if [ "$?" != "0" ]; then
  ret_val=123
elif [ "$ret_val_script" != "0" ]; then
ret_val_changes=$?

ret_val=0
if [ "$ret_val_script" != "0" ]; then
  ret_val=1
elif [ "$ret_val_changes" != "0" ]; then
  ret_val=123
fi

exit $ret_val