Skip to content

Commit

Permalink
Fix new test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Mar 10, 2024
1 parent 6bb2cfa commit e182f14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cylc/flow/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1698,11 +1698,11 @@ def _standardise_prereqs(
f"output {pre.relative_id_with_selectors} not found")
continue
except WorkflowConfigError as exc:
# The workflow does not have the task from --pre:
LOG.warning(f'Invalid pre task name set:\n {exc.args[0]}')
LOG.warning(
f'Invalid prerequisite task name:\n{exc.args[0]}')
except PointParsingError as exc:
# The CP from --pre is invalid:
LOG.warning(f'Invalid pre cycle point set:\n {exc.args[0]}')
LOG.warning(
f'Invalid prerequisite cycle point:\n{exc.args[0]}')
else:
_prereqs[pre.duplicate(task_sel=msg, cycle=cycle)] = prereq
return _prereqs
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1417,13 +1417,13 @@ def set_prereqs(prereqs):
["2040/bar"], None, prereqs, ['all'])

async with start(schd) as log:
# Invalid - task name wildcard:
# Invalid: task name wildcard:
set_prereqs(["2040/*"])
assert 'Illegal task name' in log.messages[-1]
assert log_filter(log, contains='Invalid prerequisite task name' )

# Invalid cycle point wildcard.
# Invalid: cycle point wildcard.
set_prereqs(["*/foo"])
assert 'Invalid ISO 8601' in log.messages[-1]
assert log_filter(log, contains='Invalid prerequisite cycle point')


async def test_set_outputs_live(
Expand Down

0 comments on commit e182f14

Please sign in to comment.