Skip to content

Commit

Permalink
Merge branch 'chandan/fix-nocover-tests' into 'master'
Browse files Browse the repository at this point in the history
Fix running tests without `--develop` flag

Closes #1121

See merge request BuildStream/buildstream!1782
  • Loading branch information
cs-shadow committed Dec 24, 2019
2 parents 7265eeb + 08991a2 commit 55bf729
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ tests-spawn-multiprocessing-start-method:
- chown -R buildstream:buildstream .
- su buildstream -c "tox -- ${PYTEST_ARGS} tests/{artifactcache,cachekey,elements,format,frontend,internals,plugins,sourcecache}"

tests-no-usedevelop:
# Ensure that tests also pass without `--develop` flag.
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-${DOCKER_IMAGE_VERSION}
<<: *tests
variables:
TOXENV: py35-nocover,py36-nocover,py37-nocover,py38-nocover


# Run type checkers
mypy:
stage: test
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ parentdir_prefix = BuildStream-

[tool:pytest]
addopts = --verbose --basetemp ./tmp --durations=20 --timeout=900
norecursedirs = tests/integration/project integration-cache tmp __pycache__ .eggs
norecursedirs = src tests/integration/project integration-cache tmp __pycache__ .eggs
python_files = tests/*/*.py
env =
D:BST_TEST_SUITE=True
Expand Down

0 comments on commit 55bf729

Please sign in to comment.