updated run_CI_tests.py
This commit is contained in:
@@ -26,7 +26,7 @@ def eval_cmd(cmd):
|
|||||||
res = subprocess.call (cmd, shell=True)
|
res = subprocess.call (cmd, shell=True)
|
||||||
if res < 0:
|
if res < 0:
|
||||||
print "Failed running: %s" % (cmd)
|
print "Failed running: %s" % (cmd)
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def eval_cmd_output(cmd):
|
def eval_cmd_output(cmd):
|
||||||
@@ -36,17 +36,16 @@ def eval_cmd_output(cmd):
|
|||||||
return p.communicate()[0]
|
return p.communicate()[0]
|
||||||
else:
|
else:
|
||||||
print "Failed running: %s" % (cmd)
|
print "Failed running: %s" % (cmd)
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
def rm_dir(d):
|
def rm_dir(d):
|
||||||
if os.path.isdir(d):
|
if os.path.isdir(d):
|
||||||
shutil.rmtree(d)
|
shutil.rmtree(d)
|
||||||
|
|
||||||
|
|
||||||
def runTestForProject(where):
|
def runTestForProject(where):
|
||||||
if not os.path.isdir(where):
|
if not os.path.isdir(where):
|
||||||
print "Directory %s does not exist" % (where)
|
print "Directory %s does not exist" % (where)
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
os.chdir(where)
|
os.chdir(where)
|
||||||
# First we have to remove old compilation
|
# First we have to remove old compilation
|
||||||
|
|||||||
Reference in New Issue
Block a user