Fix out-of-source runs of mxs791_galera.sh

The test used the current directory instead of the source directory where
the script was located.
This commit is contained in:
Markus Mäkelä 2018-07-28 22:33:54 +03:00
parent d501606399
commit a91b054eb4
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -4,14 +4,14 @@
## @file mxs791.sh Simple connect test in bash
## - connects to Maxscale, checks that defined in cmd line DB is selected
rp=`realpath $0`
srcdir=$(dirname $(realpath $0))
export test_dir=`pwd`
export test_name="mxs791_galera.sh"
echo test name is $test_name
$test_dir/mxs791_base.sh
$srcdir/mxs791_base.sh
res=$?
$test_dir/copy_logs.sh $test_name
$srcdir/copy_logs.sh $test_name
exit $res