testing harness, coredesktop-dev
shellcheck / shellcheck (push) Failing after 17s

This commit is contained in:
2026-11-04 09:39:46 -07:00
parent c3ac9f49d0
commit 2b85af286f
21 changed files with 1073 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# shellcheck disable=SC2034
DESCRIPTION="a failing update hook fails the update but not the hooks after it"
IMAGE=installed
TIER=pr
scenario() {
upstream_commit "Add a failing hook" '
printf "%s\n" "#!/bin/bash" "run_update() { echo smoketest: failing; return 1; }" > updates.d/13-smoketest-fail.sh
printf "%s\n" "#!/bin/bash" "run_update() { touch ~/smoketest-after; }" > updates.d/96-smoketest-after.sh'
cd_update
assert_status 1
assert_output "smoketest: failing"
assert_output "Done, with errors in: 13-smoketest-fail.sh"
assert_vm "the hook after it ran" 'test -f ~/smoketest-after'
}