2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00

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 <zygmunt.krynicki@canonical.com>
This commit is contained in:
Zygmunt Krynicki 2025-06-10 08:14:53 +02:00
parent d68dea45f1
commit ddba3bb5b5

View File

@ -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\)'