Skip to content

automated: linux: wlan-smoke: test all interfaces - #631

Merged
roxell merged 2 commits into
Linaro:masterfrom
lool:detect-interface
Aug 2, 2026
Merged

automated: linux: wlan-smoke: test all interfaces#631
roxell merged 2 commits into
Linaro:masterfrom
lool:detect-interface

Conversation

@lool

@lool lool commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Linux/systemd's predictable network interface naming derives the name from how the WiFi chip is attached: PCIe-attached radios get wlpXsY (bus/slot based, e.g. wlp1s0), while SDIO/platform-integrated radios typically keep the kernel default wlanN. So different devices legitimately end up with different interface names.

Change logic, make DEVICE empty by default which means discovering every interface under /sys/class/net/*/wireless. Then run the smoke tests against each one. This avoids hardcoding a device name in job definitions. Boards without any wireless interface report wlan-device-exists as skip instead of failing the job. Explicit -d/DEVICE still overrides auto-detection for targeting a single interface.

@lool

lool commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

@obbardc obbardc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread automated/linux/wlan-smoke/wlan-smoke-test.sh Outdated
Comment thread automated/linux/wlan-smoke/wlan-smoke-test.sh Outdated
@bhcopeland
bhcopeland self-requested a review July 24, 2026 07:25
Comment thread automated/linux/wlan-smoke/wlan-smoke-test.sh Outdated
Comment thread automated/linux/wlan-smoke/wlan-smoke-test.sh Outdated
@fboudra
fboudra requested a review from roxell July 24, 2026 15:28
Comment thread automated/linux/wlan-smoke/wlan-smoke-test.sh Outdated
Comment thread automated/linux/wlan-smoke/wlan-smoke-test.sh Outdated
Linux/systemd's predictable network interface naming derives the
name from how the WiFi chip is attached: PCIe-attached radios get
wlpXsY (bus/slot based, e.g. wlp1s0), while SDIO/platform-integrated
radios typically keep the kernel default wlanN. So different devices
legitimately end up with different interface names.

Change logic, make DEVICE empty by default which means discovering
every interface under /sys/class/net/*/wireless. Then run the smoke
tests against each one. This avoids hardcoding a device name in job
definitions. Boards without any wireless interface report
wlan-device-exists as skip instead of failing the job. Explicit
-d/DEVICE still overrides auto-detection for targeting a single
interface.

Use check_return instead of exit_on_fail in test_iplink so that a
failing interface no longer aborts the whole run, which would leave
later interfaces untested while the job still reported green.

Keep the plain test case names (ip-link, wlan-boot, wlan-down,
wlan-up) so results stay comparable with earlier runs, and put the
interface name in the info_msg only. When more than one interface is
tested, wrap each in its own lava-test-set to keep the names unique;
single-interface runs are unchanged.

Signed-off-by: Loïc Minier <loic.minier@oss.qualcomm.com>
@lool
lool force-pushed the detect-interface branch from eb16228 to 8580e98 Compare August 1, 2026 15:33
@fboudra
fboudra self-requested a review August 2, 2026 09:44

@fboudra fboudra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fboudra
fboudra requested a review from roxell August 2, 2026 09:45

@roxell roxell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing all the review comments @lool

@roxell
roxell merged commit 5bbeea9 into Linaro:master Aug 2, 2026
3 checks passed
@lool

lool commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for fixing all the review comments @lool

Thanks for the thorough reviews!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants