Skip to content

Commit

Permalink
If running in a conda build environment, disable timing tests since t…
Browse files Browse the repository at this point in the history
…he container environment causes unreliable timing.
  • Loading branch information
tskisner committed Nov 17, 2019
1 parent 5b5b0e7 commit faab5b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/toast/tests/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ def test(name=None, verbosity=2):
if name is None:
suite.addTest(loader.loadTestsFromModule(testenv))
suite.addTest(loader.loadTestsFromModule(testcache))
suite.addTest(loader.loadTestsFromModule(testtiming))
if "CONDA_BUILD" not in os.environ:
# When doing a conda build on CI services in containers
# the timing information is not accurate and these tests
# fail.
suite.addTest(loader.loadTestsFromModule(testtiming))
suite.addTest(loader.loadTestsFromModule(testrng))
suite.addTest(loader.loadTestsFromModule(testfft))
suite.addTest(loader.loadTestsFromModule(testhealpix))
Expand Down

0 comments on commit faab5b4

Please sign in to comment.