From ddba3bb5b55bc8cb568409f98fe38dcf6e7a0b95 Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Tue, 10 Jun 2025 08:14:53 +0200 Subject: [PATCH] tests: match printed output from lsusb This is a small improvement that makes sure lsusb is able to read some properties of the virtual USB devices provisioned for the test. Signed-off-by: Zygmunt Krynicki --- tests/profiles/lsusb/task.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/profiles/lsusb/task.yaml b/tests/profiles/lsusb/task.yaml index 3f7ee6152..ff393c37e 100644 --- a/tests/profiles/lsusb/task.yaml +++ b/tests/profiles/lsusb/task.yaml @@ -2,8 +2,8 @@ summary: smoke test for the lsusb profile execute: | # lsusb works (this is a very basic test). # try printing the physical USB device hierarchy as a tree - lsusb -t + lsusb -t | MATCH 'Class=Human Interface Device, Driver=usbhid' # be verbose - lsusb -v + lsusb -v | MATCH 'QEMU USB Keyboard' # The profile is attached based on the program path. "$SPREAD_PATH"/tests/bin/actual-profile-of lsusb | MATCH 'lsusb \(enforce\)'