Skip to content

Commit

Permalink
plugin postgres: make testrunner run concurrently
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
  • Loading branch information
bruno-at-bareos authored and BareosBot committed Oct 30, 2023
1 parent e4b5a70 commit 45a2624
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions systemtests/tests/py3plug-fd-postgres/testrunner-default
Expand Up @@ -38,8 +38,6 @@ popd > /dev/null

#shellcheck source=../scripts/functions
. "${rscripts}"/functions
"${rscripts}"/cleanup
"${rscripts}"/setup

# Create Test DB with table and 1 statement
echo "CREATE DATABASE $DBNAME" | ${PSQL} postgres
Expand Down Expand Up @@ -67,7 +65,7 @@ wait
messages
END_OF_DATA

run_bareos "$@"
run_bconsole

# Now add data to the database and run an incremental job
echo "INSERT INTO t (text, created_on) values ('test for INCR backup', current_timestamp)" | ${PSQL} ${DBNAME}
Expand Down Expand Up @@ -104,7 +102,6 @@ END_OF_DATA
run_bconsole

check_for_zombie_jobs storage=File
stop_bareos
sleep 1

#sometimes the pid file remains
Expand Down
4 changes: 0 additions & 4 deletions systemtests/tests/py3plug-fd-postgres/testrunner-roles
Expand Up @@ -50,12 +50,9 @@ popd > /dev/null

#shellcheck source=../scripts/functions
. "${rscripts}"/functions
"${rscripts}"/cleanup
"${rscripts}"/setup

start_test

start_bareos

cat <<END_OF_DATA >$tmp/bconcmds
@$out /dev/null
Expand Down Expand Up @@ -99,7 +96,6 @@ expect_grep "Backup OK" "$tmp/rlog2.out" "Set Role Backup OK not found in job lo


check_for_zombie_jobs storage=File
stop_bareos
sleep 1

#sometimes the pid file remains
Expand Down

0 comments on commit 45a2624

Please sign in to comment.