From 28bfc7302f02f5b83995f19f24f6d70d02203d80 Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Wed, 19 Apr 2017 15:08:38 +0200 Subject: [PATCH] always-incremental-test: do not restart bareos every time --- tests/always-incremental-test | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/tests/always-incremental-test b/tests/always-incremental-test index 760222e..7b5428d 100755 --- a/tests/always-incremental-test +++ b/tests/always-incremental-test @@ -42,7 +42,7 @@ echo "${BackupDirectory}" >${tmp}/file-list # start the test start_test - +run_bareos # create a new file and run multiple backups for file in 1 2 3 4 5 6 7 ; do @@ -55,11 +55,12 @@ run job=$JobName yes wait messages END_OF_DATA -run_bareos -check_for_zombie_jobs storage=File1 client=${Client} -stop_bareos +run_bconsole + done +#stop_bareos +#check_for_zombie_jobs storage=File1 client=${Client} cat <${tmp}/bconcmds @# @@ -73,15 +74,8 @@ list jobs messages END_OF_DATA -# Start the bareos daemon -# and run the bconsole commands from ${tmp}/bconcmds -run_bareos +run_bconsole -# verify that all are terminated -check_for_zombie_jobs storage=File1 client=${Client} - -# stop bareos -stop_bareos cat <${tmp}/bconcmds @# @# now do a restore @@ -97,12 +91,7 @@ messages quit END_OF_DATA -# Start the bareos daemon -# and run the bconsole commands from ${tmp}/bconcmds -run_bareos - -# verify that all are terminated -check_for_zombie_jobs storage=File1 client=${Client} +run_bconsole # stop bareos stop_bareos