We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cde958d commit 5cf0238Copy full SHA for 5cf0238
scripts/run_tests.py
@@ -61,10 +61,19 @@ def main():
61
62
# run each cpp bin file
63
for cmd in cpp_bins:
64
+ msg = cmd
65
result = subprocess.check_output([cmd])
66
result = result.decode("utf-8").rstrip()
- result = result.partition('\n')[0] if len(result) else ""
67
- print(cmd + " --> " + result)
+
68
+ if "SHOW_TEST_OUTPUT" in os.environ:
69
+ indent = " " * 2
70
+ result = "\n".join([indent + l for l in result.splitlines()])
71
+ msg += ":\n" + result + "\n"
72
+ else:
73
+ result = result.partition('\n')[0] if len(result) else ""
74
+ msg += " --> " + result
75
76
+ print(msg)
77
cpp_ts.parse_ts(result)
78
79
print("")
0 commit comments