forked from heavy-duty/box
chore: the four new grep-proof checks carry the SC2016 directive their siblings had
CI shellchecks every shell file; the round-2 checks embed $ROOT in single-quoted bash -c strings exactly like the check above them, but the disable directive only covers the next command — each new check gets its own, same as the repo pattern. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
4da487e388
commit
12edb1966f
1 changed files with 4 additions and 0 deletions
|
|
@ -411,15 +411,19 @@ check "new: the wedge failure is loud — retry hint, the doctor, and #93" 0 ""
|
|||
# exists' (#94 round-1, all three reviewers). The timeout path must probe the
|
||||
# instance, tell the two stories apart, and best-effort delete either way so
|
||||
# the retry advice is safe in both worlds.
|
||||
# shellcheck disable=SC2016 # the $-strings are literals in the target file
|
||||
check "new: the timeout path probes before claiming never-created (#94 r1)" 0 "" bash -c '
|
||||
awk "/^cmd_new\(\) \{/,/^\}/" "'"$ROOT"'/bin/box" \
|
||||
| grep "incus info" | grep -q "\$instance"'
|
||||
# shellcheck disable=SC2016 # the $-strings are literals in the target file
|
||||
check "new: the timeout path best-effort deletes, so retry is always clean" 0 "" bash -c '
|
||||
awk "/^cmd_new\(\) \{/,/^\}/" "'"$ROOT"'/bin/box" \
|
||||
| grep "incus delete --force" | grep -q "|| true"'
|
||||
# shellcheck disable=SC2016 # the $-strings are literals in the target file
|
||||
check "new: the overran-but-registered branch says so (not the wedge story)" 0 "" bash -c '
|
||||
awk "/^cmd_new\(\) \{/,/^\}/" "'"$ROOT"'/bin/box" \
|
||||
| grep "OVERRAN" | grep -q "budget"'
|
||||
# shellcheck disable=SC2016 # the $-strings are literals in the target file
|
||||
check "new: BOX_LAUNCH_TIMEOUT is documented in box help new" 0 "" bash -c '
|
||||
"'"$ROOT"'/bin/box" help new | grep "BOX_LAUNCH_TIMEOUT" | grep -q 600'
|
||||
# staging's creds-holding join stays OPERATOR-run: cmd_new may print it as a
|
||||
|
|
|
|||
Loading…
Reference in a new issue