]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Fix totp-auth-plugin-test
authorEric Bollengier <eric@baculasystems.com>
Mon, 19 Dec 2022 16:40:59 +0000 (17:40 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:00 +0000 (13:57 +0200)
regress/tests/totp-auth-plugin-test

index 208948c4c0eb20b66ab957f1f16bd9c6a9be6fe1..64fcc77bd5e9f5e668378624a3ca22f01cba0500 100755 (executable)
@@ -280,14 +280,14 @@ EOF
 
 run_bconsole
 
-$bin/btotp -r cons1 -q > $tmp/log7.out
+$bin/btotp -r -n cons1 -q > $tmp/log7.out
 if [ $? != 0 ]; then
     print_debug "ERROR: Unable to delete a key $tmp/log7.out"
     estat=1
 fi
 
 $bin/btotp -n cons1 -q > $tmp/log8.out
-if [ $? == 0  ]; then
+if [ $? = 0 ]; then
     print_debug "ERROR: Should not be able to display the QR code after deletion in $tmp/log8.out"
     estat=1
 fi