]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Adapt for new btotp output
authorEric Bollengier <eric@baculasystems.com>
Fri, 17 Sep 2021 11:51:40 +0000 (13:51 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 6 Sep 2023 07:49:00 +0000 (09:49 +0200)
regress/tests/totp-auth-plugin-test

index 5a45249e6ee0eef73d66063cef36dfe2af102cb7..e5b193d4362a0d7879c67d1dd11b819d3599c323 100755 (executable)
@@ -198,7 +198,7 @@ run_bacula
 echo aaaa | $bin/bconsole -c $tmp/bconsole.conf1 > $tmp/log1.out 2>&1
 
 # Compute the code ourself
-c=`$bin/btotp -n cons1 | awk -F = '{print $2}'`
+c=`BTOTP_NAME=cons1 $bin/btotp`
 cat <<EOF > $tmp/bcmd
 $c
 status dir
@@ -228,7 +228,7 @@ fi
 
 # Will generate the key in keydir
 echo aaaa | $bin/bconsole -c $tmp/bconsole.conf4 > $tmp/log4.out 2>&1
-c=`$bin/btotp -n cons4 -k $tmp/key | awk -F = '{print $2}'`
+c=`$bin/btotp -n cons4 -k $tmp/key`
 cat <<EOF > $tmp/bcmd
 $c
 messages