From ff8396df9e004bb2b284d25abbcceea2cc3f7935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kudela?= <kudmich@syncad.com> Date: Wed, 25 Sep 2024 13:19:00 +0200 Subject: [PATCH] Pass markers in environment variable ( start-api-smoketest.sh ) --- scripts/ci/start-api-smoketest.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/ci/start-api-smoketest.sh b/scripts/ci/start-api-smoketest.sh index dd0b024ab..affcc45ae 100755 --- a/scripts/ci/start-api-smoketest.sh +++ b/scripts/ci/start-api-smoketest.sh @@ -33,7 +33,15 @@ echo "Starting tests on hivemind server running on ${HIVEMIND_ADDRESS}:${HIVEMIN echo "Selected test group (if empty all will be executed): ${TEST_GROUP}" -tox -e tavern -- \ - -W ignore::pytest.PytestDeprecationWarning \ - -n "${JOBS}" \ - --junitxml=../../../../"${JUNITXML}" ${TEST_GROUP} +if [ -v RUN_TESTS_WITH_MARKER ]; then + tox -e tavern -- \ + -W ignore::pytest.PytestDeprecationWarning \ + -n "${JOBS}" \ + -m "${RUN_TESTS_WITH_MARKER}" \ + --junitxml=../../../../"${JUNITXML}" ${TEST_GROUP} +else + tox -e tavern -- \ + -W ignore::pytest.PytestDeprecationWarning \ + -n "${JOBS}" \ + --junitxml=../../../../"${JUNITXML}" ${TEST_GROUP} +fi \ No newline at end of file -- GitLab