aboutsummaryrefslogtreecommitdiff
path: root/tests/mobly/records_test.py
diff options
context:
space:
mode:
authorAng Li <xpconanfan@users.noreply.github.com>2016-12-08 13:08:59 -0800
committerGitHub <noreply@github.com>2016-12-08 13:08:59 -0800
commit269b5fd53f9df28fed8b8bfaaa2aee71f921ef25 (patch)
tree458f73ac261f41adb98f730d34b32a61ff0c439f /tests/mobly/records_test.py
parent61fcc3364442b296c30f6cd9d9d3d4eda890e444 (diff)
downloadmobly-269b5fd53f9df28fed8b8bfaaa2aee71f921ef25.tar.gz
Update test error report/handling. (#15)
Use on_fail for both test failure and uncaught exceptions. So tests don't have to call the same logic twice to cover all not-pass test status. Rename test result 'UNKNOWN' to 'ERROR" to represent uncaught error occured in test for clariy.
Diffstat (limited to 'tests/mobly/records_test.py')
-rwxr-xr-xtests/mobly/records_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mobly/records_test.py b/tests/mobly/records_test.py
index 64a7303..cb4b4a6 100755
--- a/tests/mobly/records_test.py
+++ b/tests/mobly/records_test.py
@@ -234,7 +234,7 @@ class RecordsTest(unittest.TestCase):
record1.test_fail(s)
record2 = records.TestResultRecord(self.tn)
record2.test_begin()
- record2.test_unknown(s)
+ record2.test_error(s)
tr = records.TestResult()
tr.add_record(record1)
tr.add_record(record2)