1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

build: fixed st_done test completion code

This commit is contained in:
Andrew Tridgell 2010-03-19 10:37:01 +11:00
parent be4c0aa591
commit dc68427b0e
2 changed files with 4 additions and 6 deletions

View File

@ -70,19 +70,20 @@ def cmd_testonly(opt):
if os.path.exists(st_done):
os.unlink(st_done)
cmd = '(PYTHON=/usr/bin/python perl -W ../selftest/selftest.pl --prefix=./st --builddir=. --srcdir=. --exclude=./selftest/skip --testlist="./selftest/tests.sh|" ${OPTIONS} --socket-wrapper ${TESTS} | ${FILTER_OPTIONS}) && touch st/st_done'
cmd = '(PYTHON=/usr/bin/python perl -W ../selftest/selftest.pl --prefix=./st --builddir=. --srcdir=. --exclude=./selftest/skip --testlist="./selftest/tests.sh|" ${OPTIONS} --socket-wrapper ${TESTS} && touch st/st_done) | ${FILTER_OPTIONS}'
# recursively expand variables
while cmd.find('${') != -1:
cmd = Utils.subst_vars(cmd, env)
print "test: running %s" % cmd
ret = os.system(cmd)
if ret != 0:
print("test failed with exit code %d" % ret)
print("ERROR: test failed with exit code %d" % ret)
sys.exit(ret)
if not os.path.exists(st_done):
print("test command failed to complete")
print("ERROR: test command failed to complete")
sys.exit(1)

View File

@ -1,3 +0,0 @@
# AUTOGENERATED by mktowscript.pl from ../../source4/selftest/config.mk
# Please remove this notice if hand editing