Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-marqh committed Mar 6, 2024
1 parent 7ac3b59 commit 7498d70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ class TestResampleAxis(xshared._TestCase):
transient_outputs = ["axis_output.nc"]
rtol = 5e-04

unittest.skip
def test_pressure_stratification(self):
# run the compiled Fortran XIOS programme
with open('{}/xios.xml'.format(self.test_dir)) as cxml:
print(cxml.read())
print(cxml.read(), flush=True)
subprocess.run(['mpiexec', '-n', '1', './resample.exe', ':',
'-n', '1', './xios_server.exe'],
cwd=self.test_dir, check=True)
Expand Down
13 changes: 7 additions & 6 deletions xios_examples/vertical_stratify_scenarios/test_resample_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ class TestResampleDomain(xshared._TestCase):
tname = 'test_{}'.format(os.path.splitext(os.path.basename(f))[0])
# add the test as an attribute (function) to the test class
# add the test as an attribute (function) to the test class
if os.environ.get('MVER', '') == 'XIOS3/trunk':
# these tests are hitting exceptions with XIOS3
# but not XIOS2, so skip for XIOS3 runner
setattr(TestResampleDomain, tname,
unittest.skip(TestResampleDomain.make_a_resample_test(f)))
elif tname in known_failures:
# if os.environ.get('MVER', '') == 'XIOS3/trunk':
# # these tests are hitting exceptions with XIOS3
# # but not XIOS2, so skip for XIOS3 runner
# setattr(TestResampleDomain, tname,
# unittest.skip(TestResampleDomain.make_a_resample_test(f)))
# elif tname in known_failures:
if tname in known_failures:
# set decorator @unittest.expectedFailure
setattr(TestResampleDomain, tname,
unittest.expectedFailure(TestResampleDomain.make_a_resample_test(f)))
Expand Down

0 comments on commit 7498d70

Please sign in to comment.