client/bin/autotest: mention control file in usage message
PATCH 1/1 client/bin/autotest: mention control file in usage message
Signed-off-by Alon Levy <[email protected]>
--- client/bin/autotest | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
client/bin/autotest +2 -1
@@ -21,7 +21,7 @@ os.environ['AUTODIR'] = autodir os.environ['AUTODIRBIN'] = autodirbin os.environ['PYTHONPATH'] = autodirbin -parser = OptionParser() +parser = OptionParser(usage='Usage: %prog [options] <control-file>') parser.add_option("-a", "--args", dest='args', help="additional args to pass to control file")
@@ -76,6 +76,7 @@ options, args = parser.parse_args() # Check for a control file if not in prebuild mode. if len(args) != 1 and options.client_test_setup is None: + print "missing control file." usage() drop_caches = global_config.global_config.get_config_value('CLIENT',
Signature · 1 line
1.7.6.1
Quoted 1 line · Alon Levy
Signed-off-by Alon Levy<[email protected]>
Looks good to me, applied, thanks!
http://autotest.kernel.org/changeset/5575
Quoted 25 lines
--- client/bin/autotest | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)client/bin/autotest +2
-1@@ -21,7 +21,7 @@ os.environ['AUTODIR'] = autodir os.environ['AUTODIRBIN'] = autodirbin os.environ['PYTHONPATH'] = autodirbin -parser = OptionParser() +parser = OptionParser(usage='Usage: %prog [options]<control-file>') parser.add_option("-a", "--args", dest='args', help="additional args to pass to control file")@@ -76,6 +76,7 @@ options, args = parser.parse_args() # Check for a control file if not in prebuild mode. if len(args) != 1 and options.client_test_setup is None: + print "missing control file." usage() drop_caches = global_config.global_config.get_config_value('CLIENT',