Patchwork [bitbake-devel,1/2] bitbake-selftest: fix help message to include command line

login
register
mail settings
Submitter Paul Eggleton
Date April 8, 2014, 3:49 p.m.
Message ID <1e0e4415cf6cfb462a8cfca340646abed39cd077.1396972155.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/70309/
State New
Headers show

Comments

Paul Eggleton - April 8, 2014, 3:49 p.m.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 bin/bitbake-selftest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/bin/bitbake-selftest b/bin/bitbake-selftest
index 8c55f7b..81e4c3c 100755
--- a/bin/bitbake-selftest
+++ b/bin/bitbake-selftest
@@ -26,7 +26,7 @@  except RuntimeError as exc:
     sys.exit(str(exc))
 
 def usage():
-    print('usage: %s [testname1 [testname2]...]')
+    print('usage: %s [testname1 [testname2]...]' % os.path.basename(sys.argv[0]))
 
 if len(sys.argv) > 1:
     if '--help' in sys.argv[1:]: