diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 14:14:47 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 14:14:47 +0200 |
commit | 237ab66f6c292b62b37af05771913b693b32d885 (patch) | |
tree | 5a5c223a2b07bc6253b2017ec1051c692f1eca8d /source4/scripting/bin/testparm | |
parent | 7a064b9960ab3cfb4ef76a939da7670aa34519a6 (diff) | |
download | samba-237ab66f6c292b62b37af05771913b693b32d885.tar.gz samba-237ab66f6c292b62b37af05771913b693b32d885.tar.bz2 samba-237ab66f6c292b62b37af05771913b693b32d885.zip |
selftest: Use scripted testparm.
Diffstat (limited to 'source4/scripting/bin/testparm')
-rwxr-xr-x | source4/scripting/bin/testparm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/bin/testparm b/source4/scripting/bin/testparm index 95adcf3f16..c2f8bc853f 100755 --- a/source4/scripting/bin/testparm +++ b/source4/scripting/bin/testparm @@ -57,7 +57,7 @@ def do_global_checks(lp, logger): piddir = lp.get("pid directory") - if os.path.isdir(piddir): + if not os.path.isdir(piddir): logger.error("pid directory %s does not exist", piddir) valid = False @@ -125,7 +125,7 @@ if __name__ == '__main__': help="Client IP address for 'hosts allow' checking") parser.add_option("--suppress-prompt", action="store_true", default=False, help="Suppress prompt for enter") - parser.add_option("--verbose", action="store_true", + parser.add_option("-v", "--verbose", action="store_true", default=False, help="Show default options too") parser.add_option_group(options.VersionOptions(parser)) # We need support for smb.conf macros before this will work again |