sambaopts = options.SambaOptions(parser)
parser.add_option_group(credopts)
parser.add_option_group(sambaopts)
-parser.add_option('-D', '--directory', dest='directory', default=None,
- help='set test directory')
try:
from subunit.run import TestProgram
except ImportError:
if getattr(opts, "listtests", False):
args.insert(0, "--list")
-if opts.directory:
- sys.path.append(opts.directory)
-
runner = SubunitTestRunner()
program = TestProgram(module=None, argv=[sys.argv[0]] + args, testRunner=runner)