diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a4326f31bf64f914715ad95f291864f5c292164..00c68db172eb610f77881e47ffaebade5d5e072a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,4 +2,4 @@ image: gepgitlab.laas.fr:4567/Gepetto/example-robot-data test: script: - - cd unittest && python test_all.py + - cd unittest && python test_load.py diff --git a/unittest/test_all.py b/unittest/test_all.py deleted file mode 100644 index 8470ace74b836aef73523e9b0366e3322674ff1f..0000000000000000000000000000000000000000 --- a/unittest/test_all.py +++ /dev/null @@ -1,21 +0,0 @@ -import sys -import unittest - -testmodules = [ - 'test_load', -] - -suite = unittest.TestSuite() - -for t in testmodules: - try: - # If the module defines a suite() function, call it to get the suite. - mod = __import__(t, globals(), locals(), ['suite']) - suitefn = getattr(mod, 'suite') - suite.addTest(suitefn()) - except (ImportError, AttributeError): - # else, just load all the test cases from the module. - suite.addTest(unittest.defaultTestLoader.loadTestsFromName(t)) - -result = unittest.TextTestRunner().run(suite) -sys.exit(len(result.errors) + len(result.failures))