summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHumberto Ibarra <humberto.ibarra.lopez@intel.com>2016-03-11 10:54:03 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-12 22:11:48 +0000
commit9dbfbe994063e2a3ec2baacce0e57b5e5fbea253 (patch)
tree86652b5aaa6f80ef5426ce7454439a463c7dfa0a
parent681a45200a3d48173918e8dc880ef1be293ac9c7 (diff)
downloadpoky-9dbfbe994063e2a3ec2baacce0e57b5e5fbea253.tar.gz
scripts/oe-selftest: Add short names to most common options
Add short names to most common options in oe-selftest. The options changed were --run-tests, --run-all-tests, --list-tests and --list-modules. [Yocto #9079] (From OE-Core rev: 05f699e3c2847f0c64118df8ffd43bf2f95ed4d1) Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/oe-selftest8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 4c92f6da62..9444244e02 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -73,9 +73,9 @@ def get_args_parser():
73 description = "Script that runs unit tests agains bitbake and other Yocto related tools. The goal is to validate tools functionality and metadata integrity. Refer to https://wiki.yoctoproject.org/wiki/Oe-selftest for more information." 73 description = "Script that runs unit tests agains bitbake and other Yocto related tools. The goal is to validate tools functionality and metadata integrity. Refer to https://wiki.yoctoproject.org/wiki/Oe-selftest for more information."
74 parser = argparse_oe.ArgumentParser(description=description) 74 parser = argparse_oe.ArgumentParser(description=description)
75 group = parser.add_mutually_exclusive_group(required=True) 75 group = parser.add_mutually_exclusive_group(required=True)
76 group.add_argument('--run-tests', required=False, action='store', nargs='*', dest="run_tests", default=None, help='Select what tests to run (modules, classes or test methods). Format should be: <module>.<class>.<test_method>') 76 group.add_argument('-r', '--run-tests', required=False, action='store', nargs='*', dest="run_tests", default=None, help='Select what tests to run (modules, classes or test methods). Format should be: <module>.<class>.<test_method>')
77 group.add_argument('--run-all-tests', required=False, action="store_true", dest="run_all_tests", default=False, help='Run all (unhidden) tests') 77 group.add_argument('-a', '--run-all-tests', required=False, action="store_true", dest="run_all_tests", default=False, help='Run all (unhidden) tests')
78 group.add_argument('--list-modules', required=False, action="store_true", dest="list_modules", default=False, help='List all available test modules.') 78 group.add_argument('-m', '--list-modules', required=False, action="store_true", dest="list_modules", default=False, help='List all available test modules.')
79 group.add_argument('--list-classes', required=False, action="store_true", dest="list_allclasses", default=False, help='List all available test classes.') 79 group.add_argument('--list-classes', required=False, action="store_true", dest="list_allclasses", default=False, help='List all available test classes.')
80 parser.add_argument('--coverage', action="store_true", help="Run code coverage when testing") 80 parser.add_argument('--coverage', action="store_true", help="Run code coverage when testing")
81 parser.add_argument('--coverage-source', dest="coverage_source", nargs="+", help="Specifiy the directories to take coverage from") 81 parser.add_argument('--coverage-source', dest="coverage_source", nargs="+", help="Specifiy the directories to take coverage from")
@@ -85,7 +85,7 @@ def get_args_parser():
85 help='run-tests-by <name|class|module|id|tag> <list of tests|classes|modules|ids|tags>') 85 help='run-tests-by <name|class|module|id|tag> <list of tests|classes|modules|ids|tags>')
86 group.add_argument('--list-tests-by', required=False, dest='list_tests_by', default=False, nargs='*', 86 group.add_argument('--list-tests-by', required=False, dest='list_tests_by', default=False, nargs='*',
87 help='list-tests-by <name|class|module|id|tag> <list of tests|classes|modules|ids|tags>') 87 help='list-tests-by <name|class|module|id|tag> <list of tests|classes|modules|ids|tags>')
88 group.add_argument('--list-tests', required=False, action="store_true", dest="list_tests", default=False, 88 group.add_argument('-l', '--list-tests', required=False, action="store_true", dest="list_tests", default=False,
89 help='List all available tests.') 89 help='List all available tests.')
90 group.add_argument('--list-tags', required=False, dest='list_tags', default=False, action="store_true", 90 group.add_argument('--list-tags', required=False, dest='list_tags', default=False, action="store_true",
91 help='List all tags that have been set to test cases.') 91 help='List all tags that have been set to test cases.')