Jinchul Kim created IMPALA-6289:
-----------------------------------

             Summary: Support expressions to match multiple names on 
run-tests.py
                 Key: IMPALA-6289
                 URL: https://issues.apache.org/jira/browse/IMPALA-6289
             Project: IMPALA
          Issue Type: Improvement
          Components: Infrastructure
            Reporter: Jinchul Kim
            Priority: Minor


We can specify an expression with -k option to run only substring matched 
classes or functions.
(Please see ./tests/run-tests.py --help if you would look at more details)

Sometime I would like to run a combination of different function names on a 
single command.
Here is my use case. I need to re-run several failed test cases only.

Example for expected test names to run:
{noformat}
./tests/run-tests.py shell/test_shell_commandline.py -k 'test_query_cancel 
test_execute'
or
./tests/run-tests.py shell/test_shell_commandline.py -k 'test_query_cancel, 
test_execute'
or
any other form
{noformat}

Example for unexpected test names to run:
{noformat}
./tests/run-tests.py shell/test_shell_commandline.py -k '-test_query_cancel 
-test_execute'
or
./tests/run-tests.py shell/test_shell_commandline.py -k '-test_query_cancel, 
-test_execute'
or
any other form
{noformat}

Please feel free to suggest if you have any other better format to pass the 
arguments.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to