Fix subunit test suite name.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 1 Nov 2014 22:57:35 +0000 (15:57 -0700)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 19 Nov 2014 17:30:07 +0000 (18:30 +0100)
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>
selftest/tests.py

index e83b23628196827a9e6fe20a128341f231ef35dd..4cd44e348ce034bed0d3aecc66fc1485e257263c 100644 (file)
@@ -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")