From efba04d1fea9b67a08cd3edf6ef469cd28a3d739 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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@347471 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/libcxx/test/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/libcxx/test/format.py b/utils/libcxx/test/format.py index a3fa535e2..6a334ac31 100644 --- a/utils/libcxx/test/format.py +++ b/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