From: Justin Seyster Date: Thu, 1 Apr 2010 20:28:32 +0000 (-0400) Subject: Added verbose flag to test driver. X-Git-Tag: release-v1.0~109 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=215757641c0e7a82a665ffc7ec00c2c0a8551626;p=interaspect.git Added verbose flag to test driver. --- diff --git a/test/run-testcase.py b/test/run-testcase.py index 5138295..808dd4d 100755 --- a/test/run-testcase.py +++ b/test/run-testcase.py @@ -414,7 +414,8 @@ def runGCC(args, compile_fail_msg): args = [gcc_path] + args try: - gcc_proc = subprocess.Popen(args, stderr = subprocess.PIPE) + gcc_proc = subprocess.Popen(args, stdout = subprocess.PIPE, + stderr = subprocess.STDOUT) except OSError as e: if e.errno == errno.ENOENT: print "Fatal -- Bad path to GCC:", gcc_path @@ -428,8 +429,10 @@ def runGCC(args, compile_fail_msg): if gcc_proc.returncode != 0: print compile_fail_msg - print stderrdata + print stdoutdata return False + elif verbose: + print stdoutdata return True