From 9f79455eccab5c6f29da5e36f690db6893610fe7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 20 Feb 2012 09:16:57 +1100 Subject: [PATCH] autotest: fixed check of return code for build_all.sh --- Tools/autotest/autotest.py | 2 +- Tools/scripts/build_all.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index 08bca099f7..16543603d2 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -71,7 +71,7 @@ def dump_logs(atype): def build_all(): '''run the build_all.sh script''' print("Running build_all.sh") - if not util.run_cmd(util.reltopdir('Tools/scripts/build_all.sh'), dir=util.reltopdir('.')): + if util.run_cmd(util.reltopdir('Tools/scripts/build_all.sh'), dir=util.reltopdir('.')) != 0: print("Failed build_all.sh") return False return True diff --git a/Tools/scripts/build_all.sh b/Tools/scripts/build_all.sh index ee92b33505..e32924b562 100755 --- a/Tools/scripts/build_all.sh +++ b/Tools/scripts/build_all.sh @@ -33,3 +33,5 @@ for d in $examples; do make popd done + +exit 0