19 lines
518 B
Bash
19 lines
518 B
Bash
#!/bin/bash
|
|
# shellcheck disable=SC2034
|
|
DESCRIPTION="update when CoreDesktop's repo can't be reached runs the hooks on disk and reports it"
|
|
IMAGE=installed
|
|
TIER="pr"
|
|
|
|
scenario() {
|
|
assert_vm "take the upstream away" "sudo mv $UPSTREAM $UPSTREAM.away"
|
|
cd_update
|
|
assert_status 1
|
|
assert_output "could not pull the latest CoreDesktop"
|
|
assert_output "Done, with errors in: git pull"
|
|
assert_output "Updating Arch..."
|
|
|
|
assert_vm "bring it back" "sudo mv $UPSTREAM.away $UPSTREAM"
|
|
cd_update
|
|
assert_status 0
|
|
}
|