Skip to content

Commit

Permalink
Shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Oct 14, 2024
1 parent 2206a9b commit 2a3e479
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions etc/bin/swarm
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,9 @@ prompt () {
case $USR in
[Yy])
return 0
break
;;
[Nn])
return 1
break
;;
esac
done
Expand Down
1 change: 1 addition & 0 deletions tests/flakyfunctional/cylc-poll/16-execution-time-limit.t
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ run_ok "${TEST_NAME_BASE}-validate" cylc validate "${WORKFLOW_NAME}"
workflow_run_ok "${TEST_NAME_BASE}-run" \
cylc play --reference-test -v --no-detach "${WORKFLOW_NAME}" --timestamp
#-------------------------------------------------------------------------------
# shellcheck disable=SC2317
cmp_times () {
# Test if the times $1 and $2 are within $3 seconds of each other.
python3 -u - "$@" <<'__PYTHON__'
Expand Down
1 change: 1 addition & 0 deletions tests/flakyfunctional/xtriggers/00-wall_clock.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# Test clock xtriggers
. "$(dirname "$0")/test_header"

# shellcheck disable=SC2317
run_workflow() {
cylc play --no-detach --debug "$1" \
-s "START='$2'" -s "HOUR='$3'" -s "OFFSET='$4'"
Expand Down
1 change: 0 additions & 1 deletion tests/functional/lib/bash/test_header
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,6 @@ for SKIP in ${CYLC_TEST_SKIP}; do
# Deliberately print variable substitution syntax unexpanded
# shellcheck disable=SC2016
skip_all 'this test is in $CYLC_TEST_SKIP.'
break
fi
done

Expand Down
1 change: 1 addition & 0 deletions tests/functional/reload/17-graphing-change.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#-------------------------------------------------------------------------------
set_test_number 12

# shellcheck disable=SC2317
grep_workflow_log_n_times() {
TEXT="$1"
N_TIMES="$2"
Expand Down

0 comments on commit 2a3e479

Please sign in to comment.