[v2,12/16] backends/junit.py: use piglit generic exceptions

Submitted by Dylan Baker on May 18, 2015, 5:57 p.m.

Details

Message ID 1431971870-20138-13-git-send-email-baker.dylan.c@gmail.com
State New, archived
Headers show

Not browsing as part of any series.

Commit Message

Dylan Baker May 18, 2015, 5:57 p.m.
Don't raise Exception.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
---
 framework/backends/junit.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/framework/backends/junit.py b/framework/backends/junit.py
index 57eedec..632e516 100644
--- a/framework/backends/junit.py
+++ b/framework/backends/junit.py
@@ -29,7 +29,7 @@  try:
 except ImportError:
     import xml.etree.cElementTree as etree
 
-from framework import grouptools, results, status
+from framework import grouptools, results, status, exceptions
 from framework.core import PIGLIT_CONFIG
 from .abstract import FileBackend
 from .register import Registry
@@ -281,7 +281,7 @@  def load(results_dir):
     elif os.path.exists(os.path.join(results_dir, 'results.xml')):
         return _load(os.path.join(results_dir, 'results.xml'))
     else:
-        raise Exception("No results found")
+        raise exceptions.PiglitFatalError("No results found")
 
 
 REGISTRY = Registry(