Files
coredesktop/smoketest/scenarios/42-upstream-unreachable.sh
T
david 5ed3df55e3
shellcheck / shellcheck (push) Failing after 14s
further checks
2026-11-04 10:05:50 -07:00

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
}