Skip to content

Commit b61a35e

Browse files
committed
ci: Fix file not found in run_unittests
ERROR: file or directory not found: tests/frameworks/test_gevent.py tests/frameworks/test_starlette.py Signed-off-by: Ferenc Géczi <[email protected]>
1 parent cd2b22f commit b61a35e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.tekton/run_unittests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ default)
2727
*)
2828
export REQUIREMENTS='requirements.txt' ;;
2929
esac
30-
export TESTS='tests' ;;
30+
export TESTS=('tests') ;;
3131
cassandra)
3232
export REQUIREMENTS='requirements-cassandra.txt'
33-
export TESTS='tests/clients/test_cassandra-driver.py'
33+
export TESTS=('tests/clients/test_cassandra-driver.py')
3434
export CASSANDRA_TEST='true' ;;
3535
couchbase)
3636
export REQUIREMENTS='requirements-couchbase.txt'
37-
export TESTS='tests/clients/test_couchbase.py'
37+
export TESTS=('tests/clients/test_couchbase.py')
3838
export COUCHBASE_TEST='true' ;;
3939
gevent_starlette)
4040
export REQUIREMENTS='requirements-gevent-starlette.txt'
41-
export TESTS='tests/frameworks/test_gevent.py tests/frameworks/test_starlette.py'
41+
export TESTS=('tests/frameworks/test_gevent.py' 'tests/frameworks/test_starlette.py')
4242
export GEVENT_STARLETTE_TEST='true' ;;
4343
*)
4444
echo "ERROR \$TEST_CONFIGURATION='${TEST_CONFIGURATION}' is unsupported " \
@@ -73,4 +73,4 @@ coverage run \
7373
--data-file=".coverage-${PYTHON_VERSION}-${TEST_CONFIGURATION}" \
7474
--module \
7575
pytest \
76-
--verbose --junitxml=test-results "${TESTS}" # pytest options (not coverage options anymore)
76+
--verbose --junitxml=test-results "${TESTS[@]}" # pytest options (not coverage options anymore)

0 commit comments

Comments
 (0)