summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <chandan@chandansingh.net>2019-12-24 16:31:19 +0000
committerChandan Singh <chandan@chandansingh.net>2019-12-24 16:31:19 +0000
commit55bf729c3ec2edbef97383ce15a6f7013136d3e7 (patch)
treee19004217bb30060e49156b28875c60245a38f70
parent7265eebacfa2f19cbd93f1e89f98ea211654f7bf (diff)
parent08991a2044cd821729a6a2b86a14a7cc658fa51b (diff)
downloadbuildstream-55bf729c3ec2edbef97383ce15a6f7013136d3e7.tar.gz
Merge branch 'chandan/fix-nocover-tests' into 'master'
Fix running tests without `--develop` flag Closes #1121 See merge request BuildStream/buildstream!1782
-rw-r--r--.gitlab-ci.yml8
-rw-r--r--setup.cfg2
2 files changed, 9 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1fe25810a..7025a9f7a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
diff --git a/setup.cfg b/setup.cfg
index 8a1d0ce21..481d6b771 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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