Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlaa Eddine Elamri <alaeddine.elamri@bareos.com>2022-09-12 17:08:05 +0300
committerAlaa Eddine Elamri <alaeddine.elamri@bareos.com>2022-09-14 10:46:01 +0300
commita9db9ebfdcfda2b7b057240b300c885c5edf6727 (patch)
tree19c546ee8908cdeef6b4936fd27e3efd208fcc81
parentba2981f8f68f213afdce04aeb6ef714969528849 (diff)
check job status
s
-rw-r--r--systemtests/scripts/functions2
-rwxr-xr-xsystemtests/tests/checkpoints/testrunner-checkpoints-on-kill5
2 files changed, 4 insertions, 3 deletions
diff --git a/systemtests/scripts/functions b/systemtests/scripts/functions
index 5e04144ea..a30475e5b 100644
--- a/systemtests/scripts/functions
+++ b/systemtests/scripts/functions
@@ -1038,7 +1038,7 @@ if [ ! -f ${target_file} ]; then
fi
if ! grep -q "${expected_result}" "${target_file}"; then
- echo "Expected line \"${expected_result}\" was not found in log file \"${target_file}\"." >&2
+ echo "Fail: Expected line \"${expected_result}\" was not found in log file \"${target_file}\"." >&2
estat=1
if [ "${error_message}" != "" ]; then
echo "-->${error_message}" >&2
diff --git a/systemtests/tests/checkpoints/testrunner-checkpoints-on-kill b/systemtests/tests/checkpoints/testrunner-checkpoints-on-kill
index 5b7a84634..6c13665c0 100755
--- a/systemtests/tests/checkpoints/testrunner-checkpoints-on-kill
+++ b/systemtests/tests/checkpoints/testrunner-checkpoints-on-kill
@@ -45,6 +45,7 @@ END_OF_DATA
do
cat <<END_OF_DATA >"$tmp/bconcmds"
@$out $backup_log
+status jobs
messages
quit
END_OF_DATA
@@ -59,13 +60,13 @@ END_OF_DATA
# Check that a timed checkpoint was triggered
if [[ -z $timed_checkpoint ]]; then
- echo "Timed checkpoint was not triggered!"
+ echo "ERROR: Timed checkpoint was not triggered!"
estat=1;
fi
# Check that a checkpoint happened on a volume change
if [[ -z $volume_checkpoint ]]; then
- echo "Checkpoint was not triggered on volume changes!"
+ echo "ERROR: Checkpoint was not triggered on volume changes!"
estat=2;
fi