Re: [Autotest] [PATCH] client/bin/autotest: mention control file in usage message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/07/2011 07:15 AM, Alon Levy wrote:
Signed-off-by: Alon Levy<alevy@xxxxxxxxxx>

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',

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux