mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-29 20:32:50 +00:00
trivial: installed-tests: explicitly choose webcam device ID
In some CI infrastructures other devices show up and so the webcam is not automatically picked. ``` Enabling fwupd-tests remote... Successfully enabled remote Update the device hash database... Choose a device: 0. Cancel 1. 08d460be0f1f9f128413f816022a6439e0078018 (Integrated Webcam™) 2. bbbf1ce3d1cf15550c3760b354592040292415bb (Virtio network device) Request canceled FAIL: fwupd/fwupdmgr.test (Child process exited with code 2) SUMMARY: total=1; passed=0; skipped=0; failed=1; user=0.0s; system=0.0s; maxrss=11736 FAIL: fwupd/fwupdmgr.test (Child process exited with code 2) autopkgtest [22:09:32]: test ci: -----------------------] ci FAIL non-zero exit status 2 autopkgtest [22:09:33]: test ci: - - - - - - - - - - results - - - - - - - - - - autopkgtest [22:09:33]: @@@@@@@@@@@@@@@@@@@@ summary ci FAIL non-zero exit status 2 ```
This commit is contained in:
parent
f35a3dec93
commit
708f490075
@ -2,6 +2,7 @@
|
||||
|
||||
exec 2>&1
|
||||
dirname=`dirname $0`
|
||||
device=08d460be0f1f9f128413f816022a6439e0078018
|
||||
|
||||
# ---
|
||||
echo "Getting the list of remotes..."
|
||||
@ -15,7 +16,7 @@ rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
|
||||
|
||||
# ---
|
||||
echo "Update the device hash database..."
|
||||
fwupdmgr verify-update
|
||||
fwupdmgr verify-update $device
|
||||
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
|
||||
|
||||
# ---
|
||||
@ -25,7 +26,7 @@ rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
|
||||
|
||||
# ---
|
||||
echo "Testing the verification of firmware..."
|
||||
fwupdmgr verify
|
||||
fwupdmgr verify $device
|
||||
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
|
||||
|
||||
# ---
|
||||
@ -45,17 +46,17 @@ rc=$?; if [[ $rc != 2 ]]; then exit $rc; fi
|
||||
|
||||
# ---
|
||||
echo "Testing the verification of firmware (again)..."
|
||||
fwupdmgr verify
|
||||
fwupdmgr verify $device
|
||||
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
|
||||
|
||||
# ---
|
||||
echo "Downgrading to older release (requires network access)"
|
||||
fwupdmgr downgrade
|
||||
fwupdmgr downgrade $device
|
||||
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
|
||||
|
||||
# ---
|
||||
echo "Downgrading to older release (should be none)"
|
||||
fwupdmgr downgrade
|
||||
fwupdmgr downgrade $device
|
||||
rc=$?; if [[ $rc != 2 ]]; then exit $rc; fi
|
||||
|
||||
# ---
|
||||
|
Loading…
Reference in New Issue
Block a user