[llvm-commits] [zorg] r147073 - /zorg/trunk/lnt/lnt/lnttool/import_data.py
Daniel Dunbar
daniel at zuster.org
Wed Dec 21 11:59:55 PST 2011
Author: ddunbar
Date: Wed Dec 21 13:59:55 2011
New Revision: 147073
URL: http://llvm.org/viewvc/llvm-project?rev=147073&view=rev
Log:
[lnt/v0.4] lnt import: Change command to fail on import failures.
Modified:
zorg/trunk/lnt/lnt/lnttool/import_data.py
Modified: zorg/trunk/lnt/lnt/lnttool/import_data.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/lnttool/import_data.py?rev=147073&r1=147072&r2=147073&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/lnttool/import_data.py (original)
+++ zorg/trunk/lnt/lnt/lnttool/import_data.py Wed Dec 21 13:59:55 2011
@@ -63,15 +63,20 @@
db_entry.db_version,)
# Load the database.
+ success = True
for file in args:
result = lnt.util.ImportData.import_and_report(
config, opts.database, db, file,
opts.format, opts.commit, opts.show_sample_count,
opts.noEmail)
+ success &= result.get('success', False)
if opts.show_raw_result:
pprint.pprint(result)
else:
lnt.util.ImportData.print_report_result(result, sys.stdout,
opts.verbose)
+ if not success:
+ raise SystemExit, 1
+
More information about the llvm-commits
mailing list