andreas-abel / nanoBench

A tool for running small microbenchmarks on recent Intel and AMD x86 CPUs.
http://www.uops.info
GNU Affero General Public License v3.0
435 stars 55 forks source link

Propagating return value through runnerscripts #24

Closed d-we closed 3 years ago

d-we commented 3 years ago

Hello,

during some experiments, I encountered certain system configurations in which nanoBench fails to execute which is indicated by an error message on stdout/stderr. However, I was calling the nanoBench.sh from another script in which I could not easily observe this failure because the return code of nanoBench.sh is still 0. Hence, this minor change makes this easy as the nanoBench.sh will just return with non-zero exit code in case nanoBench itself returns with non-zero exit code.