Skip to content

Commit

Permalink
Wider rename of suite.rc -> flow.cylc
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Aug 10, 2020
1 parent 0f69af5 commit 19b6f7c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/functional/validate/73-xtrigger-names.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# THIS FILE IS PART OF THE CYLC SUITE ENGINE.
# Copyright (C) NIWA & British Crown (Met Office) & Contributors.
#
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand All @@ -23,27 +23,27 @@ set_test_number 3
TEST_NAME="${TEST_NAME_BASE}-val"

# test a valid xtrigger
cat >'suite.rc' <<'__SUITE_RC__'
cat >'flow.cylc' <<'__FLOW_CONFIG__'
[scheduling]
initial cycle point = 2000
[[xtriggers]]
foo = wall_clock():PT1S
[[graph]]
R1 = @foo => bar
__SUITE_RC__
run_ok "${TEST_NAME}-valid" cylc validate suite.rc
__FLOW_CONFIG__
run_ok "${TEST_NAME}-valid" cylc validate flow.cylc

# test an invalid xtrigger
cat >'suite.rc' <<'__SUITE_RC__'
cat >'flow.cylc' <<'__FLOW_CONFIG__'
[scheduling]
initial cycle point = 2000
[[xtriggers]]
foo-1 = wall_clock():PT1S
[[graph]]
R1 = @foo-1 => bar
__SUITE_RC__
__FLOW_CONFIG__

run_fail "${TEST_NAME}-invalid" cylc validate suite.rc
run_fail "${TEST_NAME}-invalid" cylc validate flow.cylc
grep_ok 'Invalid xtrigger name' "${TEST_NAME}-invalid.stderr"

exit

0 comments on commit 19b6f7c

Please sign in to comment.