diff options
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/scripting/bin/subunitrun | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/scripting/bin/subunitrun b/source4/scripting/bin/subunitrun index 63afdc7009..7b9f20efa7 100755 --- a/source4/scripting/bin/subunitrun +++ b/source4/scripting/bin/subunitrun @@ -22,14 +22,16 @@ import sys # Find right directory when running from source tree sys.path.insert(0, "bin/python") -from subunit.run import SubunitTestRunner from unittest import TestProgram import optparse -import os -from samba import param +import samba +samba.ensure_external_module("testtools", "testtools") +samba.ensure_external_module("subunit", "subunit/python") import samba.getopt as options import samba.tests +from subunit.run import SubunitTestRunner + parser = optparse.OptionParser("subunitrun [options] <tests>") credopts = options.CredentialsOptions(parser) parser.add_option_group(credopts) |