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:
parent
5f4f7d7b11
commit
c73a23a6ab
@ -1 +0,0 @@
|
||||
../wifi/wifi-usp.t
|
||||
@ -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 &"
|
||||
|
||||
@ -1 +0,0 @@
|
||||
../wifi/wifi-usp.t
|
||||
Loading…
Reference in New Issue
Block a user