summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-20 19:57:53 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-20 19:57:53 (EDT)
commite3ebc888bf8ccdc0c43abca3030ded378d8da389 (patch)
treedae9008f82ac48686ae74a2672b8d08a780245bc
parentb31592685052f937dc92c89cfe976caafbdcd556 (diff)
tests/common.sh: Fix atexit()
-rw-r--r--tests/common.sh4
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