diff options
-rw-r--r-- | tests/common.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/common.sh b/tests/common.sh index f7467ee..5f8b24f 100644 --- a/tests/common.sh +++ b/tests/common.sh @@ -22,8 +22,8 @@ atexit() { local es=${?} - if [ ${?} -ne 0 ]; then - exit ${?} + if [ ${es} -ne 0 ]; then + exit ${es} else exit ${tests_es} fi |