From c73a23a6abe8255bc7ad107724daa48db039c50d Mon Sep 17 00:00:00 2001 From: Houssem Dafdouf Date: Thu, 4 Jun 2026 22:42:00 +0200 Subject: [PATCH] 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 --- .gitlab/tests/cram/mxl25641-hdk-6/102-pwhm-usp.t | 1 - .gitlab/tests/cram/wifi/wifi-usp.t | 8 ++++++++ .gitlab/tests/cram/wnc-freedom/102-pwhm-usp.t | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) delete mode 120000 .gitlab/tests/cram/mxl25641-hdk-6/102-pwhm-usp.t delete mode 120000 .gitlab/tests/cram/wnc-freedom/102-pwhm-usp.t diff --git a/.gitlab/tests/cram/mxl25641-hdk-6/102-pwhm-usp.t b/.gitlab/tests/cram/mxl25641-hdk-6/102-pwhm-usp.t deleted file mode 120000 index 3a013509c7..0000000000 --- a/.gitlab/tests/cram/mxl25641-hdk-6/102-pwhm-usp.t +++ /dev/null @@ -1 +0,0 @@ -../wifi/wifi-usp.t \ No newline at end of file diff --git a/.gitlab/tests/cram/wifi/wifi-usp.t b/.gitlab/tests/cram/wifi/wifi-usp.t index 51722ba210..9da044b769 100644 --- a/.gitlab/tests/cram/wifi/wifi-usp.t +++ b/.gitlab/tests/cram/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 &" diff --git a/.gitlab/tests/cram/wnc-freedom/102-pwhm-usp.t b/.gitlab/tests/cram/wnc-freedom/102-pwhm-usp.t deleted file mode 120000 index 3a013509c7..0000000000 --- a/.gitlab/tests/cram/wnc-freedom/102-pwhm-usp.t +++ /dev/null @@ -1 +0,0 @@ -../wifi/wifi-usp.t \ No newline at end of file