Skip to content

Commit

Permalink
Merge pull request #4622 from StackStorm/update_st2_self_check
Browse files Browse the repository at this point in the history
st2-self-check should ignore any pack actions which name doesn't start with "test_"
  • Loading branch information
Kami committed Apr 9, 2019
2 parents 7eecb66 + 2c66d53 commit 17985cc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions st2common/bin/st2-self-check
Expand Up @@ -119,18 +119,27 @@ rm -R st2tests/
popd

# Retrieve test action list
TEST_ACTION_LIST=`st2 action list --pack=tests -w 90 | awk '{ print $2 }' | grep -v "|" | grep -v "ref"`
TEST_ACTION_LIST=`st2 action list --pack=tests -w 90 | awk '{ print $2 }' | grep -v "|" | grep -v "ref" | grep tests.test_`

# Run all the tests
for TEST in $TEST_ACTION_LIST
do
# If -w option is not set, skip Windows related tests
# because smbclient is not installed by default.
if [ ${RUN_WINDOWS_TESTS} = "false" ] && [ ${TEST} = "tests.test_windows_runners" ]; then
echo "Skipping ${TEST}..."
continue
fi

if [ ${RUN_WINDOWS_TESTS} = "false" ] && [ ${TEST} = "tests.test_winrm_runners" ]; then
echo "Skipping ${TEST}..."
continue
fi

if [ ${RUN_WINDOWS_TESTS} = "false" ] && [ ${TEST} = "tests.test_winrm_large_script" ]; then
echo "Skipping ${TEST}..."
continue
fi

# Skip Mistral Inquiry test if we're not running Mistral tests
if [ ${RUN_MISTRAL_TESTS} = "false" ] && [ ${TEST} = "tests.test_inquiry_mistral" ]; then
echo "Skipping ${TEST}..."
Expand Down

0 comments on commit 17985cc

Please sign in to comment.