[oe-commits] [openembedded-core] 02/02: oeqa/selftest/context.py: For -t/-T use append argparse action

git at git.openembedded.org git at git.openembedded.org
Mon Sep 9 15:48:00 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit ee25469439968b56d6c20a4c3d2297165f5f54af
Author: Nathan Rossi <nathan at nathanrossi.com>
AuthorDate: Mon Sep 9 23:31:39 2019 +1000

    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".
    
    Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/selftest/context.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py
index 3126ada..b35ab16 100644
--- a/meta/lib/oeqa/selftest/context.py
+++ b/meta/lib/oeqa/selftest/context.py
@@ -79,10 +79,10 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
                             help='Run tests on different machines (random/all).')
 
         parser.add_argument('-t', '--select-tags', dest="select_tags",
-                nargs='*', default=None,
+                action='append', default=None,
                 help='Filter all (unhidden) tests to any that match any of the specified tags.')
         parser.add_argument('-T', '--exclude-tags', dest="exclude_tags",
-                nargs='*', default=None,
+                action='append', default=None,
                 help='Exclude all (unhidden) tests that match any of the specified tags. (exclude applies before select)')
 
         parser.set_defaults(func=self.run)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list