From b9f75dc462ccecd52b64470833c70000f06e118b Mon Sep 17 00:00:00 2001 From: "brooke.elizabeth.cantwell@morganstanley.com" Date: Tue, 9 Jul 2024 11:58:35 -0400 Subject: [PATCH] Force pytest to use current dir as root dir when collecting tests --- test/runTest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runTest.sh b/test/runTest.sh index 4e24b59b..64b41626 100755 --- a/test/runTest.sh +++ b/test/runTest.sh @@ -136,7 +136,7 @@ function runPytests() { PYTEST_ARGS="${COV} ${TEST_NAME} ${TEST_PATTERN} -v ${APP_HOST} ${PYTEST_ARGS} ${TRANSACTION_COUNT} ${THREAD_COUNT}" PYTEST_ARGS="${PYTEST_ARGS} ${WORKSPACE} ${RUN_DIR_ARG} ${APPS} ${SCENARIO_TYPES} ${RECORD_PMC}" - if ! PYTHONPATH=${XPEDITE_DIR}:${PYTHONPATH} FORCE_COLOR=true pytest ${PYTEST_ARGS}; then + if ! PYTHONPATH=${XPEDITE_DIR}:${PYTHONPATH} FORCE_COLOR=true pytest ${PYTEST_ARGS} .; then echo detected one or more pytest failures RC=$(($RC + 1)) fi