Browse Source

autotest: fixed check of return code for build_all.sh

mission-4.1.18
Andrew Tridgell 13 years ago
parent
commit
e5ec810c92
  1. 2
      Tools/autotest/autotest.py
  2. 2
      Tools/scripts/build_all.sh

2
Tools/autotest/autotest.py

@ -71,7 +71,7 @@ def dump_logs(atype): @@ -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

2
Tools/scripts/build_all.sh

@ -33,3 +33,5 @@ for d in $examples; do @@ -33,3 +33,5 @@ for d in $examples; do
make
popd
done
exit 0

Loading…
Cancel
Save