Signed-off-by: Dylan Baker <[email protected]>
---
 framework/programs/summary.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/framework/programs/summary.py b/framework/programs/summary.py
index 76ff6cc..afbbcf3 100644
--- a/framework/programs/summary.py
+++ b/framework/programs/summary.py
@@ -196,9 +196,8 @@ def aggregate(input_):
         backends.json._write(results, outfile)
     except IOError as e:
         if e.errno == errno.EPERM:
-            print("Error: Unable to write aggregated file, permission denied.",
-                  file=sys.stderr)
-            sys.exit(1)
+            raise exceptions.PiglitFatalError(
+                "Unable to write aggregated file, permission denied.")
         raise
 
     print("Aggregated file written to: {}".format(outfile))
-- 
2.3.5

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to