updated run_CI_tests.py
This commit is contained in:
@@ -22,7 +22,7 @@ from time import sleep;
|
|||||||
# Override system command.
|
# Override system command.
|
||||||
# run command. if not successful, complain and exit with error
|
# run command. if not successful, complain and exit with error
|
||||||
def eval_cmd(cmd):
|
def eval_cmd(cmd):
|
||||||
# print cmd
|
# print 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)
|
||||||
@@ -30,7 +30,7 @@ def eval_cmd(cmd):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
def eval_cmd_output(cmd):
|
def eval_cmd_output(cmd):
|
||||||
# print cmd
|
# print cmd
|
||||||
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
if p:
|
if p:
|
||||||
return p.communicate()[0]
|
return p.communicate()[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user