From e085340b2a8106c3bdeb6a5ee2aca84f8a2c2d4a Mon Sep 17 00:00:00 2001 From: lleri Date: Thu, 19 Jan 2023 13:05:15 +0300 Subject: [PATCH] Add fixes for (a)sync_server and map_json tests --- scripts/sprint1/async_server/run.sh | 1 + scripts/sprint1/map_json/run.sh | 2 +- scripts/sprint1/sync_server/run.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/sprint1/async_server/run.sh b/scripts/sprint1/async_server/run.sh index 4dcc4af..8262ad0 100755 --- a/scripts/sprint1/async_server/run.sh +++ b/scripts/sprint1/async_server/run.sh @@ -5,5 +5,6 @@ REPO=${PWD} source ${REPO}/.venv/bin/activate export DELIVERY_APP=${REPO}/sprint1/problems/async_server/solution/build/bin/hello_async +export COMMAND_RUN=${DELIVERY_APP} python3 -m pytest --rootdir=${REPO} --verbose --junitxml=results.xml cpp-backend-tests-practicum/tests/test_l03_hello_async.py diff --git a/scripts/sprint1/map_json/run.sh b/scripts/sprint1/map_json/run.sh index cb5e2eb..249690b 100755 --- a/scripts/sprint1/map_json/run.sh +++ b/scripts/sprint1/map_json/run.sh @@ -5,7 +5,7 @@ REPO=${PWD} source ${REPO}/.venv/bin/activate export DELIVERY_APP=${REPO}/sprint1/problems/map_json/solution/build/bin/game_server - export CONFIG_PATH=${REPO}/sprint1/problems/map_json/solution/data/config.json +export COMMAND_RUN="${DELIVERY_APP} ${CONFIG_PATH}" python3 -m pytest --rootdir=${REPO} --verbose --junitxml=results.xml cpp-backend-tests-practicum/tests/test_l04_map_json.py diff --git a/scripts/sprint1/sync_server/run.sh b/scripts/sprint1/sync_server/run.sh index e4dcb7f..fa9dca3 100755 --- a/scripts/sprint1/sync_server/run.sh +++ b/scripts/sprint1/sync_server/run.sh @@ -5,5 +5,6 @@ REPO=${PWD} source ${REPO}/.venv/bin/activate export DELIVERY_APP=${REPO}/sprint1/problems/sync_server/solution/build/bin/hello +export COMMAND_RUN=${DELIVERY_APP} python3 -m pytest --rootdir=${REPO} --verbose --junitxml=results.xml cpp-backend-tests-practicum/tests/test_l02_hello_beast.py