Close display verification races
This commit is contained in:
@@ -37,6 +37,8 @@ fail() {
|
||||
for contract in \
|
||||
'property var pendingRequested:' \
|
||||
'property var revertExpected:' \
|
||||
'property bool revertVerificationActive:' \
|
||||
'property int revertGeneration:' \
|
||||
'readonly property bool canConfirm:' \
|
||||
'function matchesRequest(' \
|
||||
'function scalesForMode(' \
|
||||
@@ -180,6 +182,14 @@ done
|
||||
run ipc show 2>/dev/null | rg -q '^target displays-test$' || fail 'test IPC target did not start'
|
||||
harness_pid="$(run list | awk '/Process ID:/ { print $3; exit }')"
|
||||
|
||||
refresh_fixture="$(run ipc call displays-test refreshIdentityFixture)"
|
||||
jq -e '
|
||||
.count == 2
|
||||
and .modes == ["[email protected]", "[email protected]"]
|
||||
and .selected == ["[email protected]"]
|
||||
' <<<"$refresh_fixture" >/dev/null \
|
||||
|| fail "59.94 Hz and 60.00 Hz lost their distinct selection identity: $refresh_fixture"
|
||||
|
||||
for _ in $(seq 1 50); do
|
||||
[[ "$(status | jq -r .count)" != "0" ]] && break
|
||||
sleep 0.1
|
||||
|
||||
Reference in New Issue
Block a user