summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2019-09-10 12:40:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-11 07:30:13 +0100
commit4a10fa34cadef6c8ca80c39f5298a763cc97033b (patch)
treea782ed6d86ae34970a2365c6bfa10c1421d8d6c7 /meta/lib
parent4abf4125f0a098e0cb02700c0412be9a83c514c0 (diff)
downloadpoky-4a10fa34cadef6c8ca80c39f5298a763cc97033b.tar.gz
oeqa/selftest/context.py: For -t/-T use append argparse action
Use the 'append' action of argparse instead of nargs. This changes the behaviour of the option from "-t foo bar -r" to "-t foo -t bar -r". Additionally rename the long form options to be consistent with behaviour, such that they specifying a single tag at a time. (From OE-Core rev: ffe9e4303fa9799d2e8af9188853a262e15af226) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/context.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py
index 3126ada716..c4eb5d614e 100644
--- a/meta/lib/oeqa/selftest/context.py
+++ b/meta/lib/oeqa/selftest/context.py
@@ -78,12 +78,12 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
78 parser.add_argument('--machine', required=False, choices=['random', 'all'], 78 parser.add_argument('--machine', required=False, choices=['random', 'all'],
79 help='Run tests on different machines (random/all).') 79 help='Run tests on different machines (random/all).')
80 80
81 parser.add_argument('-t', '--select-tags', dest="select_tags", 81 parser.add_argument('-t', '--select-tag', dest="select_tags",
82 nargs='*', default=None, 82 action='append', default=None,
83 help='Filter all (unhidden) tests to any that match any of the specified tags.') 83 help='Filter all (unhidden) tests to any that match any of the specified tag(s).')
84 parser.add_argument('-T', '--exclude-tags', dest="exclude_tags", 84 parser.add_argument('-T', '--exclude-tag', dest="exclude_tags",
85 nargs='*', default=None, 85 action='append', default=None,
86 help='Exclude all (unhidden) tests that match any of the specified tags. (exclude applies before select)') 86 help='Exclude all (unhidden) tests that match any of the specified tag(s). (exclude applies before select)')
87 87
88 parser.set_defaults(func=self.run) 88 parser.set_defaults(func=self.run)
89 89