ci: cram: wait for UPnP discovery readiness
The split prplos bucket reaches the discovery assertions sooner than the full suite and can observe an empty first root device. Poll for the first root-device UUID for at most one minute before retaining the existing parameter assertions unchanged. Assisted-by: codex:gpt-5 References: CI-7 Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
This commit is contained in:
parent
11eb3b38a5
commit
8b234753ca
@ -2,6 +2,10 @@ Create R alias:
|
||||
|
||||
$ alias R="${CRAM_REMOTE_COMMAND:-}"
|
||||
|
||||
Wait up to one minute for the first root device to be discovered:
|
||||
|
||||
$ R "i=30; while ! ba-cli 'UPnPDiscovery.RootDevice.1.?' 2>/dev/null | grep -q '^UPnPDiscovery.RootDevice.1.UUID='; do i=\$((i - 1)); [ \"\$i\" -gt 0 ] || exit 1; sleep 2; done"
|
||||
|
||||
Verification of main parameters:
|
||||
|
||||
$ R "ba-cli UPnPDiscovery.DeviceNumberOfEntries? | sort | grep '='"
|
||||
@ -47,4 +51,4 @@ Verification of Service.1 parameters:
|
||||
UPnPDiscovery.Service.1.ParentDevice=".*" (re)
|
||||
UPnPDiscovery.Service.1.Server=".*" (re)
|
||||
UPnPDiscovery.Service.1.Status=".*" (re)
|
||||
UPnPDiscovery.Service.1.USN="uuid:.*" (re)
|
||||
UPnPDiscovery.Service.1.USN="uuid:.*" (re)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user