Fails system-test if they are not executed properly

In case of VM creation problem or test code build problem
run_test.sh and run_test_vm.sh exit with 1 to show the problem
in the BuildBot
This commit is contained in:
Timofey Turenko 2020-12-07 12:56:02 +02:00
parent 74a2ae727e
commit f0ac65ffb5
2 changed files with 8 additions and 1 deletions

View File

@ -65,6 +65,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

@ -91,7 +91,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