]> sourceware.org Git - bunsen.git/commitdiff
r-* tools: suppress BrokenPipeError
authorFrank Ch. Eigler <fche@redhat.com>
Fri, 6 May 2022 19:20:58 +0000 (15:20 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Fri, 6 May 2022 19:20:58 +0000 (15:20 -0400)
bin/r-diff-testruns
bin/r-show-testrun

index e290214debbcf80b01c4aa244a288470a71647db..186f11b6f2bdb281c03b2fcfe585e5be25bbccb0 100755 (executable)
@@ -102,7 +102,10 @@ def main():
 
     env = jinja2.Environment(loader=jinja2.FunctionLoader(jinja_templatefunc))
     template = env.get_template(args.template)
-    print(template.render(jinja_params))
+    try:
+        print(template.render(jinja_params))
+    except BrokenPipeError:
+        pass
     
     logging.info("found %d diff out of %d expfile/subtest rowsets", len(datagrid), rowsets)
 
index a15fc0ae10c75bb68e0c956ed66862bc97c9f2f1..1a8729e159fe28e304c0ea82bd3dbd9459891f8a 100755 (executable)
@@ -104,10 +104,13 @@ def main():
                      }
     }
     logging.debug("jinja data: %s", jinja_params)
-
+    
     env = jinja2.Environment(loader=jinja2.FunctionLoader(jinja_templatefunc))
     template = env.get_template(args.template)
-    print(template.render(jinja_params))
+    try:
+        print(template.render(jinja_params))
+    except BrokenPipeError:
+        pass
     
 if __name__ == '__main__':
     main()
This page took 0.029962 seconds and 5 git commands to generate.