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 986a027 commit aa39227
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class TestResampleAxis(xshared._TestCase):

def test_pressure_stratification(self):
# run the compiled Fortran XIOS programme
with open('{}/xios.xml'.format(self.test_dir)) as cxml:
print(cxml.read())
subprocess.run(['mpiexec', '-n', '1', './resample.exe', ':',
'-n', '1', './xios_server.exe'],
cwd=self.test_dir, check=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ class TestResampleDomain(xshared._TestCase):
# unique name for the test
tname = 'test_{}'.format(os.path.splitext(os.path.basename(f))[0])
# add the test as an attribute (function) to the test class
if tname in known_failures:
# 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:
# set decorator @unittest.expectedFailure
setattr(TestResampleDomain, tname,
unittest.expectedFailure(TestResampleDomain.make_a_resample_test(f)))
Expand Down
2 changes: 1 addition & 1 deletion xios_examples/vertical_stratify_scenarios/xios.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<context id="xios">
<context>
<variable_definition>
<variable_group id="buffer">
<variable id="optimal_buffer_size" type="string">
Expand Down

0 comments on commit aa39227

Please sign in to comment.