diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2016-08-02 10:27:05 +1200 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2016-08-31 07:09:26 +0200 |
commit | 809f4c718af00909bbce46ddde6a2688a88e73fc (patch) | |
tree | 7146e820bae442e68f1c51c46e7acabd19599bbe /selftest | |
parent | 6c391e18a47782a78e035f3e35a41710d8424105 (diff) | |
download | samba-809f4c718af00909bbce46ddde6a2688a88e73fc.tar.gz |
subunithelper: use set for efficient inclusion test
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/subunithelper.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py index 948256db9ad..441bafad926 100644 --- a/selftest/subunithelper.py +++ b/selftest/subunithelper.py @@ -24,7 +24,11 @@ from samba.subunit.run import TestProtocolClient from samba.subunit import iso8601 import unittest -VALID_RESULTS = ['success', 'successful', 'failure', 'fail', 'skip', 'knownfail', 'error', 'xfail', 'skip-testsuite', 'testsuite-failure', 'testsuite-xfail', 'testsuite-success', 'testsuite-error', 'uxsuccess', 'testsuite-uxsuccess'] +VALID_RESULTS = set(['success', 'successful', 'failure', 'fail', 'skip', + 'knownfail', 'error', 'xfail', 'skip-testsuite', + 'testsuite-failure', 'testsuite-xfail', + 'testsuite-success', 'testsuite-error', + 'uxsuccess', 'testsuite-uxsuccess']) class TestsuiteEnabledTestResult(unittest.TestResult): |