From: Eric Bollengier Date: Sun, 12 Apr 2009 11:53:04 +0000 (+0000) Subject: ebl Test postgresql encoding at the start of the test X-Git-Tag: Release-7.0.0~3144 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=43dca773fe7ab27fdb4c88b25754daf36549abd5;p=bacula%2Fbacula ebl Test postgresql encoding at the start of the test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8716 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/functions b/regress/scripts/functions index 715f6fb4cb..d4105a8fe6 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -3,8 +3,18 @@ # +check_encoding() +{ + $bin/bacula-dir -d50 -t -c bin/bacula-dir.conf 2>&1 | grep 'Wanted SQL_ASCII, got UTF8' >/dev/null + if [ $? = 0 ]; then + echo "Found database encoding problem, please modify the database encoding (SQL_ASCII)" + exit 1 + fi +} + start_test() { + check_encoding # Turn off email outf="tmp/sed_tmp" echo "s% mail =%# mail = %g" >${outf}