]> granicus.if.org Git - llvm/commitdiff
update_mir_test_checks: Improve message when updating fails
authorJustin Bogner <mail@justinbogner.com>
Wed, 18 Oct 2017 22:36:08 +0000 (22:36 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 18 Oct 2017 22:36:08 +0000 (22:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316133 91177308-0d34-0410-b5e6-96231b3b80d8

utils/update_mir_test_checks.py

index e2ae3e7b51e481ed760223bec5bf51542f846f29..469f6c1d72b16f0fae980a8ef77689a081c925c4 100755 (executable)
@@ -399,8 +399,12 @@ def main():
     args = parser.parse_args()
 
     for test in args.tests:
-        update_test_file(args.llc, test, args.remove_common_prefixes,
-                         verbose=args.verbose)
+        try:
+            update_test_file(args.llc, test, args.remove_common_prefixes,
+                             verbose=args.verbose)
+        except Exception:
+            warn('Error processing file', test_file=test)
+            raise
 
 
 if __name__ == '__main__':