| 1 |
#!/usr/bin/env bash |
| 2 |
# THIS FILE IS PART OF THE CYLC WORKFLOW ENGINE. |
| 3 |
# Copyright (C) NIWA & British Crown (Met Office) & Contributors. |
| 4 |
# |
| 5 |
# This program is free software: you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation, either version 3 of the License, or |
| 8 |
# (at your option) any later version. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
# Test site-config host item boolean override (GitHub #2282). |
| 19 |
|
| 20 |
. "$(dirname "$0")/test_header" |
| 21 |
set_test_number 2 |
| 22 |
|
| 23 |
cat etc/global.cylc <<'__hi__' |
| 24 |
[platforms] |
| 25 |
[[desktop\d\d|laptop\d\d]] |
| 26 |
[[sugar]] |
| 27 |
login hosts = localhost |
| 28 |
job runner = slurm |
| 29 |
[[hpc]] |
| 30 |
login hosts = hpcl1, hpcl2 |
| 31 |
retrieve job logs = True |
| 32 |
job runner = pbs |
| 33 |
[[hpcl1-bg]] |
| 34 |
login hosts = hpcl1 |
| 35 |
retrieve job logs = True |
| 36 |
job runner = background |
| 37 |
[[hpcl2-bg]] |
| 38 |
login hosts = hpcl2 |
| 39 |
retrieve job logs = True |
| 40 |
job runner = background |
| 41 |
__hi__ |
| 42 |
|
| 43 |
export CYLC_CONF_PATH="${PWD}/etc" |
| 44 |
|
| 45 |
run_ok "${TEST_NAME_BASE}" cylc config |
| 46 |
|
| 47 |
cmp_ok "${TEST_NAME_BASE}.stderr" </dev/null |
| 48 |
|
| 49 |
exit |