From ed8cac91f96f96b3a0e12eaebbf0183f4fecd1c2 Mon Sep 17 00:00:00 2001 From: Tony Mack <tmack@cs.princeton.edu> Date: Fri, 18 Apr 2008 00:38:08 +0000 Subject: [PATCH] minor updates --- qaapi/qa/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qaapi/qa/utils.py b/qaapi/qa/utils.py index 40eb086..00dbb7e 100644 --- a/qaapi/qa/utils.py +++ b/qaapi/qa/utils.py @@ -17,11 +17,12 @@ def popen(command, fatal=True, verbose = False): header(command, False) (stdin, stdout, stderr) = os.popen3(command) output = stdout.readlines() + errors = stderr.readlines() print >> logfile, "+ "+command print >> logfile, "".join(output).strip() # filter output generated by set x remove_set_x = lambda line: not line.startswith("+") - errors = filter(remove_set_x, stderr.readlines()) + errors = filter(remove_set_x, errors) if fatal and errors: raise Exception, "".join(errors) -- 2.47.0