forked from OSchip/llvm-project
[NFC][libcxx] Print human-friendly command line when lit test fails
We used to print a Python list corresponding to the command. It is more useful to print the joined string so it can be copy/pasted directly when a test fails. llvm-svn: 347471
This commit is contained in:
parent
b34b6ffa9d
commit
893413318f
|
@ -206,7 +206,7 @@ class LibcxxTestFormat(object):
|
|||
cmd, out, err, rc = self.executor.run(exec_path, [exec_path],
|
||||
local_cwd, data_files,
|
||||
env)
|
||||
report = "Compiled With: %s\n" % compile_cmd
|
||||
report = "Compiled With: '%s'\n" % ' '.join(compile_cmd)
|
||||
report += libcxx.util.makeReport(cmd, out, err, rc)
|
||||
if rc == 0:
|
||||
res = lit.Test.PASS if retry_count == 0 else lit.Test.FLAKYPASS
|
||||
|
|
Loading…
Reference in New Issue