From 64c82f33ecf8a59821b871a8c29776f09038f41c Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 12 Apr 2009 11:53:04 +0000 Subject: [PATCH] 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 --- regress/scripts/functions | 10 ++++++++++ 1 file changed, 10 insertions(+) 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} -- 2.39.5