From 893413318fae40a9b6e99b8ece439383906b29aa Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Thu, 22 Nov 2018 16:10:49 +0000 Subject: [PATCH] [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 --- libcxx/utils/libcxx/test/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/utils/libcxx/test/format.py b/libcxx/utils/libcxx/test/format.py index a3fa535e29f9..6a334ac31cf4 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