Add sleep before running p11sak

This commit is contained in:
Karel Srot 2022-10-24 14:58:31 +02:00
commit ee01e76443

View file

@ -67,7 +67,7 @@ rlJournalStart
rlPhaseStartTest "Generate aes key as $USER and verify stats"
rlRun -s "pkcsstats -s $SLOT -U $USER" 0,1
rlAssertGrep "(no mechanisms were used|No statistics are available for user '$USER')" $rlRun_LOG -E
rlRun "su - $USER -c 'p11sak generate-key aes 128 --slot $SLOT --pin $pkcsUSER_PIN --label aes_key --attr ED'"
rlRun "su - $USER -c 'sleep 3 && p11sak generate-key aes 128 --slot $SLOT --pin $pkcsUSER_PIN --label aes_key --attr ED'"
rlRun -s "p11sak list-key aes --slot $SLOT --pin $pkcsUSER_PIN"
rlAssertGrep "AES 128 | aes_key" $rlRun_LOG
rlRun -s "pkcsstats -s $SLOT -U $USER"