[Piglit] [PATCH 39/42] base_tests.py: use utils.TestFailure instead of AssertionError
Dylan Baker
baker.dylan.c at gmail.com
Wed Apr 22 15:10:28 PDT 2015
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
framework/tests/base_tests.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/framework/tests/base_tests.py b/framework/tests/base_tests.py
index 8210fc5..9bbd88e 100644
--- a/framework/tests/base_tests.py
+++ b/framework/tests/base_tests.py
@@ -108,12 +108,14 @@ def test_run_command_early():
"""
class Test_(Test):
def interpret_result(self):
- raise AssertionError('Test.run() did not return early')
+ raise utils.TestFailure("The test didn't return early")
def _run_command(self):
return True
- test = Test_(['foo'])
+ # Of course, if there is an executable 'foobarboinkoink' in your path this
+ # test will fail. It seems pretty unlikely that you would
+ test = Test_(['foobarboinkoink'])
test.run()
--
2.3.5
More information about the Piglit
mailing list