Skip to content

Commit

Permalink
Make the pytest options consistent
Browse files Browse the repository at this point in the history
* use ~/junit rather than /root/junit

use the common options in the pytest call

put the split options in the runtime call
  • Loading branch information
EricSoroos committed Sep 22, 2022
1 parent 367fed2 commit 2017537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Expand Up @@ -23,7 +23,7 @@ defaults:
# Tests Backend, split across containers by segments
run: |
mkdir -p ~/junit/result
python -m pytest -v --ckan-ini=test-core-circle-ci.ini --cov=ckan --cov=ckanext --junitxml=/root/junit/result/junit.xml --splits 4 --group $((CIRCLE_NODE_INDEX+1)) --splitting-algorithm least_duration
python -m pytest ${PYTEST_COMMON_OPTIONS} --splits 4 --group $((CIRCLE_NODE_INDEX+1)) --splitting-algorithm least_duration
ckan_env: &ckan_env
environment:
Expand All @@ -36,7 +36,7 @@ defaults:
CKAN_POSTGRES_USER: ckan_default
CKAN_POSTGRES_PWD: pass
PGPASSWORD: ckan
PYTEST_COMMON_OPTIONS: -v --ckan-ini=test-core-circle-ci.ini --cov=ckan --cov=ckanext --junitxml=/root/junit/result/junit.xml --test-group-count 4 --test-group-random-seed 1
PYTEST_COMMON_OPTIONS: -v --ckan-ini=test-core-circle-ci.ini --cov=ckan --cov=ckanext --junitxml=~/junit/result/junit.xml
pg_image: &pg_image
image: postgres:10
environment:
Expand Down

0 comments on commit 2017537

Please sign in to comment.