26 lines
722 B
Bash
26 lines
722 B
Bash
#!/bin/bash
|
|
# shellcheck disable=SC2034
|
|
DESCRIPTION="install an older commit, update to the commit under test: same machine as a fresh install"
|
|
IMAGE=base
|
|
TIER="nightly"
|
|
mapfile -t VARIANTS < <(sed 's/#.*//' "$(dirname "${BASH_SOURCE[0]}")/../baselines" | awk 'NF { print $1 }')
|
|
|
|
scenario() {
|
|
[ -f "$(reference_fingerprint)" ] \
|
|
|| skip "needs the fingerprint 10-fresh-install saves; run both in the same run"
|
|
|
|
upstream_set "$VARIANT"
|
|
cd_install
|
|
assert_status 0
|
|
vm_reboot
|
|
|
|
upstream_set "$SMOKETEST_REF"
|
|
cd_update
|
|
assert_status 0
|
|
vm_reboot
|
|
health
|
|
|
|
fingerprint "$SMOKETEST_RESULTS/updated.fingerprint"
|
|
assert_same_fingerprint "$(reference_fingerprint)" "$SMOKETEST_RESULTS/updated.fingerprint"
|
|
}
|