You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "nithya (JIRA)" <ji...@apache.org> on 2018/03/27 22:14:00 UTC

[jira] [Closed] (IMPALA-5886) run-tests.py returns error overeagerly

     [ https://issues.apache.org/jira/browse/IMPALA-5886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nithya closed IMPALA-5886.
--------------------------

> run-tests.py returns error overeagerly
> --------------------------------------
>
>                 Key: IMPALA-5886
>                 URL: https://issues.apache.org/jira/browse/IMPALA-5886
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 2.10.0
>            Reporter: Jim Apple
>            Assignee: nithya
>            Priority: Major
>              Labels: newbie
>
> {{pytest.main}} returns 5 if no tests are selected. When EE tests are run but no tests of one of the categories (serial, stress, other) is run, then run-tests.py calls {{sys.exit(1)}}. The {{exit_code}} in the {{run_tests}} method should check for the designated return value 5, "No tests were collected": [https://docs.pytest.org/en/latest/usage.html]
> repro:
>  {{FE_TEST=false BE_TEST=false EE_TEST=true EE_TEST_FILES=query_test/test_udfs.py JDBC_TEST=false CLUSTER_TEST=false bin/run-all-tests.sh}}
>  
> Adding some more details here
> current and expected behavior from run-tests.py with the changes
>  * return 0 if EE tests pass
>  * return 1 if EE tests fail
>  * return 0 if no tests were collected in a scenario where no EE tests are being run
>  * return 1 if no tests were collected when EE tests were expected to run but there is some error



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)