summaryrefslogtreecommitdiff
path: root/tests.sh
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2011-11-11 10:39:36 +0100
committer?ric Araujo <merwok@netwok.org>2011-11-11 10:39:36 +0100
commit097b589846487d69aea605e219171bfe87e2cd95 (patch)
treeda687608f64d2df91ccb28b2c29c4eaf22d5e84a /tests.sh
parent9efef6c0eb1a438675e37c421c09430d013a1505 (diff)
downloaddisutils2-097b589846487d69aea605e219171bfe87e2cd95.tar.gz
Propagate error code from Python
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests.sh b/tests.sh
index be81c3f..15a8347 100755
--- a/tests.sh
+++ b/tests.sh
@@ -5,7 +5,7 @@ python2.4 -Wd runtests.py -q
if [ $? -ne 0 ];then
echo Failed, re-running
python2.4 -Wd runtests.py
- exit 1
+ exit $?
else
echo Success
fi
@@ -15,7 +15,7 @@ python2.5 -Wd runtests.py -q
if [ $? -ne 0 ];then
echo Failed, re-running
python2.5 -Wd runtests.py
- exit 1
+ exit $?
else
echo Success
fi
@@ -25,7 +25,7 @@ python2.6 -Wd runtests.py -q
if [ $? -ne 0 ];then
echo Failed, re-running
python2.6 -Wd runtests.py
- exit 1
+ exit $?
else
echo Success
fi
@@ -35,14 +35,14 @@ python2.7 -Wd -bb -3 runtests.py -q
if [ $? -ne 0 ];then
echo Failed, re-running
python2.7 -Wd -bb -3 runtests.py
- exit 1
+ exit $?
else
echo Success
fi
if [ $? -ne 0 ];then
echo Failed
- exit 1
+ exit $?
else
echo "Good job, commit now! (or add tests)"
fi