Make display confirmation test deterministic
This commit is contained in:
@@ -335,9 +335,14 @@ done
|
||||
[[ "$(status | jq -r .overridden)" == "false" ]] || fail 'an unconfirmed change was written to the settings store'
|
||||
|
||||
# ── A confirmed change is what writes ────────────────────────────────────────
|
||||
run ipc call displays-test applyScale "$target_scale" >/dev/null
|
||||
[[ "$(run ipc call displays-test confirmChange)" == "false" ]] \
|
||||
|| fail 'Keep accepted a display change before compositor readback'
|
||||
[[ "$(run ipc call displays-test applyScale "$target_scale")" == "true" ]] \
|
||||
|| fail 'the confirmed-change fixture could not apply'
|
||||
|
||||
# Hyprland can apply and read back a change faster than two IPC round trips, so
|
||||
# this live test cannot reliably observe the pre-readback state. The
|
||||
# fake-compositor contract deterministically holds that boundary open and
|
||||
# proves Keep refuses it; this path proves a real readback eventually enables
|
||||
# and persists Keep on the physical display.
|
||||
verified=false
|
||||
for _ in $(seq 1 30); do
|
||||
[[ "$(status | jq -r .canConfirm)" == "true" ]] && { verified=true; break; }
|
||||
|
||||
Reference in New Issue
Block a user