[LNT] r303811 - tests/compile.py: Show command use to determine filesize in verbose mode
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed May 24 15:00:43 PDT 2017
Author: matze
Date: Wed May 24 17:00:43 2017
New Revision: 303811
URL: http://llvm.org/viewvc/llvm-project?rev=303811&view=rev
Log:
tests/compile.py: Show command use to determine filesize in verbose mode
This helps when debugging.
Modified:
lnt/trunk/lnt/tests/compile.py
Modified: lnt/trunk/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/compile.py?rev=303811&r1=303810&r2=303811&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Wed May 24 17:00:43 2017
@@ -505,6 +505,9 @@ def test_build(base_name, run_info, vari
format_args = {"build_config": build_config}
cmd = codesize_util + [os.path.join(build_base,
binary_path % format_args)]
+ if opts.verbose:
+ g_log.info('running: %s' %
+ " ".join("'%s'" % arg for arg in cmd))
result = subprocess.check_output(cmd).strip()
if result != "fail":
bytes = long(result)
More information about the llvm-commits
mailing list