ci: cram: pwhm-usp.t test script is executed twice

Problem:

The revert of MR !2395 is incomplete. It added the new
103-pwhm-usp.t symlink but kept the previous 102-pwhm-usp.t symlink.

As a result, both symlinks point to the same script, causing the
pwhm-usp test to be executed twice in the same test run. Running the
script twice in a row without delay is unreliable and may lead to some
failures.

Solution:

- Remove the obsolete 102-pwhm-usp.t symlink so only 103-pwhm-usp.t
remains.
- Ensure the AccessPoint is disabled before starting the test.

Closes: PPW-2036
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
This commit is contained in:
Houssem Dafdouf 2026-06-04 22:42:00 +02:00
parent 5f4f7d7b11
commit c73a23a6ab
3 changed files with 8 additions and 2 deletions

View File

@ -1 +0,0 @@
../wifi/wifi-usp.t

View File

@ -16,6 +16,14 @@ Check if there is at least one connected client (should be beerocks processes):
$ R "netstat -ap 2>/dev/null | grep 'CONNECTED.*pwhm_usp.sock'| wc -l"
[1-9]$ (re)
Disable AccessPoint to make sure Event:
$ R "ba-cli WiFi.AccessPoint.1.Enable=0" > /dev/null 2>&1
$ sleep 5
Test USP events:
$ R "lua /tmp/usp-event.lua 'Device.WiFi.AccessPoint.1.Enable!' 'dm:object-changed' \"contains('parameters.Enable')\" > /tmp/pwhm_usp_events &"

View File

@ -1 +0,0 @@
../wifi/wifi-usp.t