diff --git a/scripts/ci/start-api-smoketest.sh b/scripts/ci/start-api-smoketest.sh
index dd0b024abb45c394a5ab07b8754805957a031081..affcc45ae079ae0a8932066e0e41d42d98965e05 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