summaryrefslogtreecommitdiff
path: root/units/usb
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2020-01-24 14:35:15 +0000
committerJonathan Cave <jonathan.cave@canonical.com>2020-01-24 14:35:15 +0000
commit8ed557d02507b2da23faadaff480ac787a622a0c (patch)
treecec9fb71de1ae4036b35d8b82f0630910d0bb9a8 /units/usb
parentcdf88690fe4998d3e6e771d609b4d32f73da2667 (diff)
info/stress/usb: use CHECKBOX_RUNTIME variable
Make calls to checkbox-support-lsusb use the CHECKBOX_RUNTIME variable to find the usb.ids file.
Diffstat (limited to 'units/usb')
-rw-r--r--units/usb/usb.pxu2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/usb/usb.pxu b/units/usb/usb.pxu
index 7fc8976..77dd601 100644
--- a/units/usb/usb.pxu
+++ b/units/usb/usb.pxu
@@ -7,7 +7,7 @@ estimated_duration: 1.0
command:
set -o pipefail
if [[ -v SNAP ]]; then
- checkbox-support-lsusb -f $SNAP/checkbox-runtime/var/lib/usbutils/usb.ids 2>/dev/null | sed 's/.*\(ID .*\)/\1/' | head -n 4 || echo "No USB devices were detected" >&2
+ checkbox-support-lsusb -f $CHECKBOX_RUNTIME/var/lib/usbutils/usb.ids 2>/dev/null | sed 's/.*\(ID .*\)/\1/' | head -n 4 || echo "No USB devices were detected" >&2
else
lsusb 2>/dev/null | sort || echo "No USB devices were detected" >&2
fi