Skip to content

Commit

Permalink
#31: [Tests] Give more time for unlock event
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdope committed Jul 16, 2024
1 parent 0b2d52b commit 97037bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/can-actually-be-used/test-agent-properly-triggers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ sleep 5 # make sure agent is up
sync && sync && sync
sudo umount /tmp/fakestick
sudo modprobe -r g_mass_storage || exit 1
sleep 10
sleep 20
sudo tail -n 200 /var/log/auth.log | grep "pamusb-agent\[" | grep "has been removed, locking down user" > /dev/null && echo -e "\t\t\t\tLock event found" || { echo -e "\t\t\t\tNo lock event found!"; exit 1; }

# "plug" virtual usb
sudo modprobe g_mass_storage file=./virtual_usb.img stall=0 removable=y iSerialNumber=1234567890 || exit 1
sleep 10
sleep 20
sudo tail -n 200 /var/log/auth.log | grep "pamusb-agent\[" | grep "Authentication succeeded. Unlocking user" > /dev/null && echo -e "\t\t\t\tUnlock event found" || { echo -e "\t\t\t\tNo unlock event found!"; exit 1; }

# Disable agent again
Expand Down

0 comments on commit 97037bd

Please sign in to comment.