In the test, ensure the globbed statepoint filenames are sorted

This commit is contained in:
alex-lyons 2020-03-24 14:08:47 +00:00 committed by Paul Romano
parent f2bc95afa5
commit 11807ae1f1

View file

@ -59,7 +59,7 @@ class TriggerStatepointRestartTestHarness(PyAPITestHarness):
def _test_output_created(self):
"""Make sure statepoint files have been created."""
spfiles = glob.glob(self._sp_pattern)
spfiles = sorted(glob.glob(self._sp_pattern))
assert len(spfiles) == 2, \
'Two statepoint files should have been created'
if not self._final_sp: