test: allow selection of test names by target
authorAndrew Tridgell <tridge@samba.org>
Thu, 9 Feb 2012 04:15:09 +0000 (15:15 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 9 Feb 2012 04:41:50 +0000 (15:41 +1100)
this allows us to add elements to knownfail with different results for
the ntvfs backend and the s3fs backend

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/selftest/tests.py

index b5a1736fd7c7c10f7eec236c456021dfa41ee69d..732f4d809b0a20cd6dd9f75dff768c7b68102484 100755 (executable)
@@ -35,7 +35,7 @@ else:
 
 def plansmbtorturetestsuite(name, env, options, modname=None, target="samba4"):
     if modname is None:
-        modname = "samba4.%s" % name
+        modname = "%s.%s" % (target, name)
     if isinstance(options, list):
         options = " ".join(options)
     torture = smb4torture