diff options
author | Louis Dionne <ldionne@apple.com> | 2018-11-22 16:10:49 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2018-11-22 16:10:49 +0000 |
commit | 893413318fae40a9b6e99b8ece439383906b29aa (patch) | |
tree | cddd1477fba6a5fbb27a7b93787d48a0556e96f2 /libcxx/utils | |
parent | b34b6ffa9d4aae16272cbdbf508134f98b4647d4 (diff) | |
download | bcm5719-llvm-893413318fae40a9b6e99b8ece439383906b29aa.tar.gz bcm5719-llvm-893413318fae40a9b6e99b8ece439383906b29aa.zip |
[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
Diffstat (limited to 'libcxx/utils')
-rw-r--r-- | libcxx/utils/libcxx/test/format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/utils/libcxx/test/format.py b/libcxx/utils/libcxx/test/format.py index a3fa535e29f..6a334ac31cf 100644 --- a/libcxx/utils/libcxx/test/format.py +++ b/libcxx/utils/libcxx/test/format.py @@ -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 |