These tests were only returning the exit-code of the last command in the bash script, which would silence failures in commands prior to that. This patch fixes this. Now these tests will return a non-zero exit code for any failure when executing these bash scripts. Change-Id: I2195bbd0357f0b38c192ab5f9e8ad68101786247 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/68677 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>