add debug info for runner.py
@@ -22,10 +22,13 @@ def run(pytest, output_file, repeatUntilFailure, testDir, test_slice):
log("Preparing test suite with {}".format(pytest))
testListFile = "test_list.txt"
# collect_status = os.system('{} --collect-only {} > {}'.format(pytest, testDir, testListFile))
- result = subprocess.Popen('{} --collect-only {} > {}'.format(pytest, testDir, testListFile), stderr=subprocess.PIPE, shell=True)
+ result = subprocess.Popen('{} --collect-only {} > {}'.format(pytest, testDir, testListFile),
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE, shell=True)
if result.returncode != 0:
# log("Output was: {}".format(result))
- log("Test suit preparation error {}".format(result.stderr.read()))
+ log("STDERR: Test suit preparation error {}".format(result.stderr.read()))
+ log("STDOUT: Test suit preparation error {}".format(result.stdout.read()))
return -1
log("Reading collected modules file")
