[llvm-commits] [zorg] r103070 - /zorg/trunk/lnt/lnt/tests/nt.py
Daniel Dunbar
daniel at zuster.org
Tue May 4 19:00:26 PDT 2010
Author: ddunbar
Date: Tue May 4 21:00:26 2010
New Revision: 103070
URL: http://llvm.org/viewvc/llvm-project?rev=103070&view=rev
Log:
LNT/nt: Fix crash when run against compiler we can't figure out the source rev of.
Modified:
zorg/trunk/lnt/lnt/tests/nt.py
Modified: zorg/trunk/lnt/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/nt.py?rev=103070&r1=103069&r2=103070&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Tue May 4 21:00:26 2010
@@ -299,7 +299,7 @@
# FIXME: Pretty lame, should we just require the user to specify this?
if run_info['llvm_revision'].isdigit():
run_info['run_order'] = run_info['llvm_revision']
- if (run_info['cc_src_revision'].isdigit() and
+ if (run_info.get('cc_src_revision','').isdigit() and
('run_order' not in run_info or
int(run_info['run_order'] < int(run_info['cc_src_revision'])))):
run_info['run_order'] = run_info['cc_src_revision']
More information about the llvm-commits
mailing list