Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/host-matrix/scenarios/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading