Files
coredesktop/smoketest/scenarios/42-upstream-unreachable.sh
T
david 2b85af286f
shellcheck / shellcheck (push) Failing after 17s
testing harness, coredesktop-dev
2026-11-04 09:39:46 -07:00

19 lines
516 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
}