From ebffaa5457bfee74c1394b8f073b757978ea33b2 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 24 Apr 2007 10:27:05 +0000 Subject: [PATCH] fix fifo tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4612 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/tests/backup-bacula-fifo | 4 +++- regress/tests/fifo-test | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/regress/tests/backup-bacula-fifo b/regress/tests/backup-bacula-fifo index bb09ea3347..b650807eef 100755 --- a/regress/tests/backup-bacula-fifo +++ b/regress/tests/backup-bacula-fifo @@ -9,8 +9,10 @@ TestName="backup-bacula-fifo" JobName=backupfifo . scripts/functions -set_debug 0 +set_debug 1 +cwd=`pwd` +scripts/cleanup scripts/copy-fifo-confs echo "${cwd}/build" >/tmp/file-list diff --git a/regress/tests/fifo-test b/regress/tests/fifo-test index 8ff28b8c67..05980a8cd2 100755 --- a/regress/tests/fifo-test +++ b/regress/tests/fifo-test @@ -13,6 +13,7 @@ scripts/copy-test-confs echo "/tmp/bfifo" >/tmp/file-list rm -f /tmp/bfifo +mkfifo /tmp/bfifo # send a file into the fifo file=encrypt-bug.jpg cat ${file} >/tmp/bfifo& @@ -40,7 +41,8 @@ messages @# now do a restore @# @$out tmp/log2.out -restore where=${cwd}/tmp/bacula-restores select all storage=File1 done +@#setdebug level=50 client +restore where=/ select all storage=File1 done yes wait messages @@ -48,7 +50,7 @@ messages quit END_OF_DATA -cat tmp/${file} & +cat tmp/${file}& run_bconsole -- 2.39.5