[Piglit] [PATCH v2 12/16] backends/junit.py: use piglit generic exceptions
Dylan Baker
baker.dylan.c at gmail.com
Mon May 18 10:57:46 PDT 2015
Don't raise Exception.
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
framework/backends/junit.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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(
--
2.4.0
More information about the Piglit
mailing list