From: Eric Bollengier Date: Mon, 2 Nov 2020 09:17:08 +0000 (+0100) Subject: regress: Fix copy-sqlquery-duplicate-test X-Git-Tag: Release-11.3.2~879 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04d6bd47f809a45c146ba03fdd77b2960ee7f311;p=thirdparty%2Fbacula.git regress: Fix copy-sqlquery-duplicate-test The SQL query used in the test is not compatible with SQLite or MySQL --- diff --git a/regress/tests/copy-sqlquery-duplicate-test b/regress/tests/copy-sqlquery-duplicate-test index ae49539ad..f1ab4ac4c 100755 --- a/regress/tests/copy-sqlquery-duplicate-test +++ b/regress/tests/copy-sqlquery-duplicate-test @@ -19,6 +19,12 @@ echo "${cwd}/build" >${cwd}/tmp/file-list sed 's/migrate/copy/g' ${cwd}/bin/bacula-dir.conf > ${cwd}/tmp/1 sed 's/Migrate/Copy/g' ${cwd}/tmp/1 > ${cwd}/bin/bacula-dir.conf +$bin/dbcheck -B -c $conf/bacula-dir.conf | grep PostgreSQL > /dev/null +if [ $? -ne 0 ]; then + print_debug "Test designed to run on PostgreSQL database" + exit 0 +fi + change_jobname NightlySave $JobName $bperl -e "add_attribute('$conf/bacula-dir.conf', 'AllowDuplicateJobs', 'no', 'Job', 'copy-sqlquery')"