Skip to content

Commit

Permalink
[tests/run_tests] Support deselect specific test case (#3949)
Browse files Browse the repository at this point in the history
Signed-off-by: Jing Kan jika@microsoft.com
Blueve authored Aug 6, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent bac8b9b commit ea0d0c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/run_tests.sh
Original file line number Diff line number Diff line change
@@ -157,7 +157,11 @@ function setup_test_options()
fi

for skip in ${SKIP_SCRIPTS} ${SKIP_FOLDERS}; do
PYTEST_COMMON_OPTS="${PYTEST_COMMON_OPTS} --ignore=${skip}"
if [[ $skip == *"::"* ]]; then
PYTEST_COMMON_OPTS="${PYTEST_COMMON_OPTS} --deselect=${skip}"
else
PYTEST_COMMON_OPTS="${PYTEST_COMMON_OPTS} --ignore=${skip}"
fi
done

if [[ -d ${LOG_PATH} ]]; then

0 comments on commit ea0d0c6

Please sign in to comment.