diff options
author | Humberto Ibarra <humberto.ibarra.lopez@intel.com> | 2016-03-11 10:54:03 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-12 22:11:21 +0000 |
commit | 05f699e3c2847f0c64118df8ffd43bf2f95ed4d1 (patch) | |
tree | a0de1977aa0f096ed967aa6f8065c9e338348091 | |
parent | 07db569a91e2aa8456624b340830c0e027cc6ead (diff) | |
download | openembedded-core-05f699e3c2847f0c64118df8ffd43bf2f95ed4d1.tar.gz openembedded-core-05f699e3c2847f0c64118df8ffd43bf2f95ed4d1.tar.bz2 openembedded-core-05f699e3c2847f0c64118df8ffd43bf2f95ed4d1.zip |
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]
Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rwxr-xr-x | scripts/oe-selftest | 8 |
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(): 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." parser = argparse_oe.ArgumentParser(description=description) group = parser.add_mutually_exclusive_group(required=True) - 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>') - group.add_argument('--run-all-tests', required=False, action="store_true", dest="run_all_tests", default=False, help='Run all (unhidden) tests') - group.add_argument('--list-modules', required=False, action="store_true", dest="list_modules", default=False, help='List all available test modules.') + 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>') + group.add_argument('-a', '--run-all-tests', required=False, action="store_true", dest="run_all_tests", default=False, help='Run all (unhidden) tests') + group.add_argument('-m', '--list-modules', required=False, action="store_true", dest="list_modules", default=False, help='List all available test modules.') group.add_argument('--list-classes', required=False, action="store_true", dest="list_allclasses", default=False, help='List all available test classes.') parser.add_argument('--coverage', action="store_true", help="Run code coverage when testing") 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(): help='run-tests-by <name|class|module|id|tag> <list of tests|classes|modules|ids|tags>') group.add_argument('--list-tests-by', required=False, dest='list_tests_by', default=False, nargs='*', help='list-tests-by <name|class|module|id|tag> <list of tests|classes|modules|ids|tags>') - group.add_argument('--list-tests', required=False, action="store_true", dest="list_tests", default=False, + group.add_argument('-l', '--list-tests', required=False, action="store_true", dest="list_tests", default=False, help='List all available tests.') group.add_argument('--list-tags', required=False, dest='list_tags', default=False, action="store_true", help='List all tags that have been set to test cases.') |