summaryrefslogtreecommitdiff
path: root/selftest/tests.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-11-01 15:57:35 -0700
committerJelmer Vernooij <jelmer@samba.org>2014-11-19 18:30:07 +0100
commitfb08cd5310c2c806e49597da4c3a310b058645ae (patch)
tree23d7486d01c25cbc4c3ce70bc3cedb58cd818be2 /selftest/tests.py
parent1800bc567d56d0c193410a83692185ebbbce7f43 (diff)
downloadsamba-fb08cd5310c2c806e49597da4c3a310b058645ae.tar.gz
Fix subunit test suite name.
Only run it when testscenarios is installed, as it depends on that. Change-Id: I1e1284024cf94f909e585a55b8a15e33273f167b Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'selftest/tests.py')
-rw-r--r--selftest/tests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/selftest/tests.py b/selftest/tests.py
index e83b2362819..4cd44e348ce 100644
--- a/selftest/tests.py
+++ b/selftest/tests.py
@@ -37,7 +37,12 @@ if have_man_pages_support:
planpythontestsuite("none", "samba.tests.docs")
planpythontestsuite("none", "selftest.tests.test_suite", extra_path=[srcdir()])
-planpythontestsuite("none", "subunit")
+try:
+ import testscenarios
+except ImportError:
+ skiptestsuite("subunit", "testscenarios not available")
+else:
+ planpythontestsuite("none", "subunit.tests.test_suite")
planpythontestsuite("none", "samba.tests.blackbox.ndrdump")
planpythontestsuite("none", "api", name="ldb.python", extra_path=['lib/ldb/tests/python'])
planpythontestsuite("none", "samba.tests.credentials")