diff options
| author | Marius Kintel <marius@kintel.net> | 2010-07-07 18:36:58 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2010-10-31 00:42:36 (GMT) | 
| commit | a8064004b41f48bb6ae52ad3846c0dd271aa1929 (patch) | |
| tree | 27002446b303f5ba1ef83adecc731948e860d48a /tests | |
| parent | e38a3d0379a92d4c5565e1dde689e844cb5a0af2 (diff) | |
Output errors to stderr instead of a log file
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/test_cmdline_tool.py | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/tests/test_cmdline_tool.py b/tests/test_cmdline_tool.py index 66ca21c..6769cef 100755 --- a/tests/test_cmdline_tool.py +++ b/tests/test_cmdline_tool.py @@ -39,10 +39,8 @@ def verify_test(cmd, testfile):      return True  def execute_and_redirect(cmd, params, outfile): -    outf = open(outfile, "wb") -    proc = subprocess.Popen([cmd] + params, stdout=outf) +    proc = subprocess.Popen([cmd] + params, stdout=outfile)      retval = proc.wait() -    outf.close()      return retval  def get_normalized_text(filename): @@ -80,8 +78,7 @@ def run_test(cmd, testfile):      if not options.generate:          if not compare_text(expectedfilename, actualfilename):  -            execute_and_redirect("diff", [expectedfilename, actualfilename],  -                                 os.path.join(outputdir, test + ".log")) +            execute_and_redirect("diff", [expectedfilename, actualfilename], sys.stderr)              return False      return True | 
