From be6296bd39b15d6b30af7670e7f05b1f8a6fc96a Mon Sep 17 00:00:00 2001 From: Karel Srot Date: Fri, 27 Sep 2024 11:11:35 +0200 Subject: [PATCH] Read SLOT numeric value --- Sanity/testsuite/runtest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sanity/testsuite/runtest.sh b/Sanity/testsuite/runtest.sh index e78a0fa..6f815fd 100755 --- a/Sanity/testsuite/runtest.sh +++ b/Sanity/testsuite/runtest.sh @@ -39,7 +39,7 @@ PACKAGE="opencryptoki" LOGDIR=`mktemp -d` - +[ -z "$SLOT" ] && SLOT=sw function reset_tokens() { rlLogInfo "Reseting tokens..." @@ -84,7 +84,7 @@ rlJournalStart pkcsconf -t # allow to pass SLOT number as a parameter # or take the first available slot (Token) - [ -z "$SLOT" ] && SLOT=`pkcsconf -t | sed -n 's/^Token #\([0-9]\).*/\1/gp' | head -n 1` + SLOT=$( pkcsGetTokenSlot $SLOT ) rlLogInfo "Token under a test" pkcsconf -t -c $SLOT