* [PATCH] client/bin/autotest: mention control file in usage message
@ 2011-09-07 10:15 Alon Levy
2011-09-07 16:40 ` Lucas Meneghel Rodrigues
0 siblings, 1 reply; 2+ messages in thread
From: Alon Levy @ 2011-09-07 10:15 UTC (permalink / raw)
To: autotest; +Cc: kvm
Signed-off-by: Alon Levy <alevy@redhat.com>
---
client/bin/autotest | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/client/bin/autotest b/client/bin/autotest
index af521de..c84b771 100755
--- a/client/bin/autotest
+++ b/client/bin/autotest
@@ -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',
--
1.7.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] client/bin/autotest: mention control file in usage message
2011-09-07 10:15 [PATCH] client/bin/autotest: mention control file in usage message Alon Levy
@ 2011-09-07 16:40 ` Lucas Meneghel Rodrigues
0 siblings, 0 replies; 2+ messages in thread
From: Lucas Meneghel Rodrigues @ 2011-09-07 16:40 UTC (permalink / raw)
To: Alon Levy; +Cc: autotest, kvm
On 09/07/2011 07:15 AM, Alon Levy wrote:
> Signed-off-by: Alon Levy<alevy@redhat.com>
Looks good to me, applied, thanks!
http://autotest.kernel.org/changeset/5575
> ---
> client/bin/autotest | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/client/bin/autotest b/client/bin/autotest
> index af521de..c84b771 100755
> --- a/client/bin/autotest
> +++ b/client/bin/autotest
> @@ -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',
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-07 16:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-07 10:15 [PATCH] client/bin/autotest: mention control file in usage message Alon Levy
2011-09-07 16:40 ` Lucas Meneghel Rodrigues
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).