diff options
author | Daniel Moody <dmoody256@gmail.com> | 2017-12-30 22:22:46 (GMT) |
---|---|---|
committer | Daniel Moody <dmoody256@gmail.com> | 2017-12-30 22:22:46 (GMT) |
commit | 9f693ab6601ac60bfdc2e7785a1de44bf0bf0e1b (patch) | |
tree | e0d74e1a8c3a20938caf6420ba6cc51ebb924804 /test | |
parent | 1a6de1b9ec85b8856f9b0b977493d3bac1ebfeb2 (diff) | |
download | SCons-9f693ab6601ac60bfdc2e7785a1de44bf0bf0e1b.zip SCons-9f693ab6601ac60bfdc2e7785a1de44bf0bf0e1b.tar.gz SCons-9f693ab6601ac60bfdc2e7785a1de44bf0bf0e1b.tar.bz2 |
several tests will not work with coverage, so set them to skip
Diffstat (limited to 'test')
-rw-r--r-- | test/Repository/M4.py | 4 | ||||
-rw-r--r-- | test/exitfns.py | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/Repository/M4.py b/test/Repository/M4.py index fe1eb7b..29647e9 100644 --- a/test/Repository/M4.py +++ b/test/Repository/M4.py @@ -36,6 +36,10 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() +# TODO: figure out how to write the coverage data to the locked folder or maybe somewhere else +if 'COVERAGE_PROCESS_START' in os.environ: + test.skip_test("this test locks the folder for writing meaning coverage data can not be written; skipping test.") + test.subdir('work', 'repository', ['repository', 'src']) test.write('mym4.py', """ diff --git a/test/exitfns.py b/test/exitfns.py index d1bda3a..dcd8762 100644 --- a/test/exitfns.py +++ b/test/exitfns.py @@ -28,6 +28,12 @@ import TestSCons test = TestSCons.TestSCons() +# also exclude these tests since it overides the exit function which doesnt work with coverage +# # more info here: https://coverage.readthedocs.io/en/coverage-4.4.2/subprocess.html# +# TODO: figure out how to cover tests which use exit functions +if 'COVERAGE_PROCESS_START' in os.environ: + test.skip_test("This test replaces the exit function which is needed by coverage to write test data; skipping test.") + sconstruct = """ from SCons.exitfuncs import * |