diff --git a/tests/host-matrix/scenarios/upgrade.sh b/tests/host-matrix/scenarios/upgrade.sh index f67c0dcd1..8f77f69ff 100755 --- a/tests/host-matrix/scenarios/upgrade.sh +++ b/tests/host-matrix/scenarios/upgrade.sh @@ -2,7 +2,13 @@ # An environment made from an older edition moves to the newest, and back. source "$(dirname "$0")/../lib.sh" require_isolation -step "luban new hmu tiny@0.1.0" ok -- L new hmu tiny@0.1.0 +out="$(L new hmu tiny@0.1.0 2>&1)"; rc=$? +if [[ $rc -ne 0 && ! -e "$XLINGS_HOME/subos/hmu" ]]; then + record "tiny@0.1.0 is not offered here, and nothing was made" true "$rc" "$out" + skip "no older edition of tiny for $(uname -m) to upgrade from" +fi +record "luban new hmu tiny@0.1.0" "$([[ $rc -eq 0 ]] && echo true || echo false)" "$rc" "$out" +[[ $rc -eq 0 ]] || { FAILED=1; done_; } step "the plan" ok -- L upgrade hmu --dry-run grep -q 'up to date' <<<"$LAST_OUT" && skip "the index has one version of tiny" step "agent mode: nothing changes without -y" 2 -- L upgrade hmu --agent