]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Fix bconsole-test when readline is not available
authorEric Bollengier <eric@baculasystems.com>
Fri, 16 Oct 2020 13:13:14 +0000 (15:13 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:58 +0000 (09:02 +0100)
regress/tests/bconsole-test

index 6fe226c16eee5ed0b0d20285d7b30375164bbed3..d54c28f310e09b7002352cc249658e4adf551750 100755 (executable)
@@ -120,7 +120,8 @@ if [ $? -ne 0 ]; then
     estat=13
 fi
 
-if [ ! -f $tmp/histfile ]; then
+ldd $bin/bconsole | grep readline > /dev/null
+if [ $? = 0 && ! -f $tmp/histfile ]; then
     print_debug "bconsole history file not found"
     estat=14
 fi