[LNT] r174147 - Add a strip to the compile test codesize output checker to robustify it against whitespace.
Michael Gottesman
mgottesman at apple.com
Thu Jan 31 21:25:36 PST 2013
Author: mgottesman
Date: Thu Jan 31 23:25:36 2013
New Revision: 174147
URL: http://llvm.org/viewvc/llvm-project?rev=174147&view=rev
Log:
Add a strip to the compile test codesize output checker to robustify it against whitespace.
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=174147&r1=174146&r2=174147&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Thu Jan 31 23:25:36 2013
@@ -464,7 +464,7 @@ 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)]
- result = subprocess.check_output(cmd)
+ result = subprocess.check_output(cmd).strip()
if result != "fail":
bytes = long(result)
success = True
More information about the llvm-commits
mailing list