Merge branch '2.3' into 2.4
This commit is contained in:
commit
8787b5dc81
@ -2204,11 +2204,11 @@ bool TestConnections::test_bad_config(int m, const string& config)
|
||||
// Set the timeout to prevent hangs with configurations that work
|
||||
set_timeout(20);
|
||||
|
||||
return maxscales->ssh_node_f(m,
|
||||
int ssh_rc = maxscales->ssh_node_f(m,
|
||||
true,
|
||||
"cp /tmp/maxscale.cnf /etc/maxscale.cnf; pkill -9 maxscale; "
|
||||
"maxscale -U maxscale -lstdout &> /dev/null && sleep 1 && pkill -9 maxscale")
|
||||
== 0;
|
||||
"maxscale -U maxscale -lstdout &> /dev/null && sleep 1 && pkill -9 maxscale");
|
||||
return ((ssh_rc == 0) || (ssh_rc == 256));
|
||||
}
|
||||
int TestConnections::call_mdbci(const char* options)
|
||||
{
|
||||
|
@ -66,6 +66,10 @@ mkdir build && cd build
|
||||
cmake .. -DBUILD_SYSTEM_TESTS=Y -DBUILDNAME=${mdbci_config_name} -DCMAKE_BUILD_TYPE=Debug
|
||||
cd system-test
|
||||
make
|
||||
if [ $? != 0 ] ; then
|
||||
echo "Test code build FAILED! exiting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ${test_set} | grep "NAME#"
|
||||
if [ $? == 0 ] ; then
|
||||
|
@ -93,7 +93,10 @@ scp -i $key $sshopt test_env $me@$ip:~/
|
||||
ssh -i $key $sshopt $me@$ip "sudo usermod --shell /bin/bash $me"
|
||||
ssh -i $key $sshopt $me@$ip "./MaxScale/BUILD/install_test_build_deps.sh"
|
||||
ssh -i $key $sshopt $me@$ip ". ./test_env; env; ./MaxScale/system-test/mdbci/run_test.sh"
|
||||
|
||||
if [ $? != 0 ] ; then
|
||||
echo "Tests execution FAILED! exiting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
. ${script_dir}/configure_log_dir.sh
|
||||
mkdir -p LOGS
|
||||
|
Loading…
x
Reference in New Issue
Block a user