[llvm-commits] [LNT] r167077 - /lnt/trunk/lnt/tests/compile.py
Michael Gottesman
mgottesman at apple.com
Tue Oct 30 17:14:28 PDT 2012
Author: mgottesman
Date: Tue Oct 30 19:14:28 2012
New Revision: 167077
URL: http://llvm.org/viewvc/llvm-project?rev=167077&view=rev
Log:
[compile test] Changed traceback error to use logging instead of sys.stderr.
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=167077&r1=167076&r2=167077&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Tue Oct 30 19:14:28 2012
@@ -849,10 +849,10 @@
raise SystemExit("\ninterrupted\n")
except:
import traceback
- print >>sys.stderr,'*** EXCEPTION DURING TEST, HALTING ***'
- print >>sys.stderr,'--'
- traceback.print_exc()
- print >>sys.stderr,'--'
+ g_log.error('*** EXCEPTION DURING TEST, HALTING ***')
+ g_log.error('--')
+ g_log.error(traceback.format_exc())
+ g_log.error('--')
run_info['had_errors'] = 1
g_log.info('run complete')
More information about the llvm-commits
mailing list