Merge branch '2.3' into 2.4

This commit is contained in:
Timofey Turenko 2020-12-07 22:16:47 +02:00
commit 8787b5dc81
3 changed files with 11 additions and 4 deletions

View File

@ -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)
{

View File

@ -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

View File

@ -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