Commit 884b22ae authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Attempt to solve online CI issue

parent 469e377d
Pipeline #19759 passed with stages
in 27 minutes and 45 seconds
......@@ -21,6 +21,8 @@ exitcode-jessie:
- pip install -r requirements.txt
- pip install coverage
- pip install coverage-badge
- pip install chainconsumer # Required by some of the example scripts
- python install
- coverage erase
- coverage run --include=tupak/* -a test/
- coverage run --include=tupak/* -a test/
import unittest
import os
import shutil
from context import tupak
import logging
import glob
import subprocess
from past.builtins import execfile
class Test(unittest.TestCase):
......@@ -32,9 +29,9 @@ class Test(unittest.TestCase):
"{} not removed prior to tests".format(self.outdir))
def test_examples(self):
""" Loop over all examples to check they run """
examples = glob.glob("examples/*/*.py")
""" Loop over examples to check they run """
examples = ['examples/injection_examples/',
......@@ -45,8 +42,7 @@ class Test(unittest.TestCase):
for filename in examples:
print("Testing {}".format(filename))
out = subprocess.check_output(["python", filename, "--test"])
subprocess.check_call(['python', filename, '--test'])
if __name__ == '__main__':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment