[Piglit] [PATCH v2 16/16] program/summary: use piglit exceptions
Dylan Baker
baker.dylan.c at gmail.com
Mon May 18 10:57:50 PDT 2015
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
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 130d33a..fef5680 100644
--- a/framework/programs/summary.py
+++ b/framework/programs/summary.py
@@ -205,9 +205,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.4.0
More information about the Piglit
mailing list