diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2014-11-01 21:08:49 -0700 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2014-11-22 02:23:10 +0100 |
| commit | 24035a6b3ed5ffdb1e75ebd375c3f7c2129742ff (patch) | |
| tree | b7b7c636a58fde0cc89a2c1a9c4a82236ed49a1d /source4 | |
| parent | ed4c07b34b5571c021684e3df6bf5fc63cde69c5 (diff) | |
| download | samba-24035a6b3ed5ffdb1e75ebd375c3f7c2129742ff.tar.gz samba-24035a6b3ed5ffdb1e75ebd375c3f7c2129742ff.tar.xz samba-24035a6b3ed5ffdb1e75ebd375c3f7c2129742ff.zip | |
Move option parsing to samba.tests.subunitrun.
Change-Id: I2939c1b6ebb9739530efa9bc4667668cff7a7aeb
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
| -rwxr-xr-x | source4/dsdb/tests/python/dirsync.py | 2 | ||||
| -rwxr-xr-x | source4/scripting/bin/subunitrun | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source4/dsdb/tests/python/dirsync.py b/source4/dsdb/tests/python/dirsync.py index 2de77366ec..a480518790 100755 --- a/source4/dsdb/tests/python/dirsync.py +++ b/source4/dsdb/tests/python/dirsync.py @@ -702,4 +702,4 @@ if getattr(opts, 'load_list', None): args.insert(0, "--load-list=%s" % opts.load_list) -TestProgram(module=__name__, argv=[sys.argv[0]] + args) +TestProgram(module=__name__) diff --git a/source4/scripting/bin/subunitrun b/source4/scripting/bin/subunitrun index c85fc97fb2..48b507a7b4 100755 --- a/source4/scripting/bin/subunitrun +++ b/source4/scripting/bin/subunitrun @@ -39,7 +39,7 @@ sys.path.insert(0, "bin/python") import optparse import samba -from samba.tests.subunitrun import TestProgram +from samba.tests.subunitrun import TestProgram, SubunitOptions import samba.getopt as options import samba.tests @@ -71,8 +71,10 @@ parser = optparse.OptionParser(usage=usage, description=description) parser.format_description = format_description credopts = options.CredentialsOptions(parser) sambaopts = options.SambaOptions(parser) +subunitopts = SubunitOptions(parser) parser.add_option_group(credopts) parser.add_option_group(sambaopts) +parser.add_option_group(subunitopts) opts, args = parser.parse_args() |
