Browse Source

Fixed test

pull/119/head
Rob Harrison 7 years ago
parent
commit
81b0fd5a72
  1. 7
      mysql-backup-s3/integration-tests.sh

7
mysql-backup-s3/integration-tests.sh

@ -7,14 +7,17 @@ export MYSQL_HOST=123
export MYSQL_USER=123
export MYSQL_PASSWORD=123
OUT=$(/bin/bash backup.sh)
OUT=$(/bin/bash backup.sh 2>&1)
if [ "$?" == "0" ]; then
echo "Backup exit code was 0"
exit 1
fi
if [ "$OUT" == "" ]; then
EXPECTED="Creating dump for --all-databases from 123...
mysqldump: Got error: 2002: \"Can't connect to MySQL server on '123' (22)\" when trying to connect"
if [ "$OUT" != "$EXPECTED" ]; then
echo "OUTPUT was '$OUT'"
exit 1
fi

Loading…
Cancel
Save