From: Eric Bollengier Date: Fri, 17 Sep 2021 11:51:40 +0000 (+0200) Subject: regress: Adapt for new btotp output X-Git-Tag: Beta-15.0.0~877 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f983a3eb81297b43a34d1f403e8ebd47a5c62772;p=thirdparty%2Fbacula.git regress: Adapt for new btotp output --- diff --git a/regress/tests/totp-auth-plugin-test b/regress/tests/totp-auth-plugin-test index 5a45249e6..e5b193d43 100755 --- a/regress/tests/totp-auth-plugin-test +++ b/regress/tests/totp-auth-plugin-test @@ -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 < $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 < $tmp/bcmd $c messages