Skip to content
Snippets Groups Projects
Commit 3e83f75d authored by Paul van der Laan's avatar Paul van der Laan
Browse files

Merge branch 'master' of...

Merge branch 'master' of https://gitlab.windenergy.dtu.dk/EllipSys/ellipsyswrapper into CleanUpRSTfiles
parents 1731c32e b64b3921
No related branches found
No related tags found
1 merge request!6EllipSys1D
...@@ -38,7 +38,7 @@ class CaseRunner(object): ...@@ -38,7 +38,7 @@ class CaseRunner(object):
self.auxilaryfiles = [] self.auxilaryfiles = []
self.keep_directory = False self.keep_directory = False
self.test_restart = False self.test_restart = False
self.vars = [] self.vars = []
self.root_dir = os.getcwd() self.root_dir = os.getcwd()
...@@ -276,6 +276,11 @@ class EllipSysTestCase(object): ...@@ -276,6 +276,11 @@ class EllipSysTestCase(object):
root_dir = os.getcwd() root_dir = os.getcwd()
# skip test if test case directory is not present
if not os.path.exists(os.path.join(root_dir,
self.casedict['directory'])):
raise unittest.SkipTest('Testcase directory not found')
case = CaseRunner(self.casedict) case = CaseRunner(self.casedict)
if 'casename' not in self.casedict.keys(): if 'casename' not in self.casedict.keys():
case.casename = self.__class__.__name__.split('.')[-1] case.casename = self.__class__.__name__.split('.')[-1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment