Skip to content

Commit

Permalink
Tests: Tidy create_test_global_config calls
Browse files Browse the repository at this point in the history
As global config no longer contains top-level settings
  • Loading branch information
MetRonnie committed Nov 13, 2020
1 parent 19d114d commit c621e9f
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion tests/flakyfunctional/events/44-timeout.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

set_test_number 4

create_test_global_config "
create_test_global_config "" "
[scheduler]
process pool timeout = PT10S
"
Expand Down
14 changes: 7 additions & 7 deletions tests/flakyfunctional/job-submission/18-check-chunking.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
. "$(dirname "$0")/test_header"
set_test_number 3

create_test_global_config '
create_test_global_config '' '
[scheduler]
process pool size = 1
' ''
'

init_suite "${TEST_NAME_BASE}" <<'__FLOW_CONFIG__'
[scheduler]
Expand All @@ -40,12 +40,12 @@ init_suite "${TEST_NAME_BASE}" <<'__FLOW_CONFIG__'
[[t1<p>]]
# Reduce the load on many jobs sending the "started" message
init-script = """
sleep $((RANDOM % 10))
"""
sleep $((RANDOM % 10))
"""
script = """
wait
sleep $((RANDOM % 5))
"""
wait
sleep $((RANDOM % 5))
"""
__FLOW_CONFIG__


Expand Down
2 changes: 1 addition & 1 deletion tests/flakyfunctional/job-submission/19-chatty.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export REQUIRE_PLATFORM='batch:at'
. "$(dirname "$0")/test_header"
set_test_number 15

create_test_global_config "
create_test_global_config "" "
[scheduler]
process pool timeout = PT10S
[platforms]
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/events/47-long-output.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ fi

set_test_number 10

create_test_global_config "
create_test_global_config "" "
[scheduler]
process pool timeout = PT10S
" ""
"

# Long STDOUT output

Expand Down
3 changes: 1 addition & 2 deletions tests/functional/job-submission/16-timeout.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ export REQUIRE_PLATFORM='batch:at comms:tcp'
. "$(dirname "$0")/test_header"
set_test_number 4

create_test_global_config "
create_test_global_config "" "
[scheduler]
process pool timeout = PT10S
" "
[platforms]
[[$CYLC_TEST_PLATFORM]]
batch submit command template = sleep 30
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/lib/bash/test_header
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
# Expect 2 OK tests.
# create_test_global_config [PRE [POST]]
# Create a new global config file $PWD/etc from global-tests.cylc
# with PRE and POST pre- and ap-pended (PRE for top level items with no
# section heading). PRE and POST are strings.
# with PRE and POST pre- and ap-pended (PRE for e.g. jinja2 shebang).
# PRE and POST are strings.
# localhost_fqdn
# Get the FQDN of the current host using the same mechanism Cylc uses.
# get_fqdn [TARGET]
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/logging/03-roll.t
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ create_test_global_config '' '
[scheduler]
[[logging]]
rolling archive length = 8
maximum size in bytes = 2048'
maximum size in bytes = 2048
'
run_ok "${TEST_NAME_BASE}-validate" \
cylc validate "${SUITE_NAME}"
suite_run_ok "${TEST_NAME_BASE}-run" \
Expand Down

0 comments on commit c621e9f

Please sign in to comment.