diff --git a/maxscale-system-test/mdbci/run_test_snapshot.sh b/maxscale-system-test/mdbci/run_test_snapshot.sh index a3e6c643d..577163cf0 100755 --- a/maxscale-system-test/mdbci/run_test_snapshot.sh +++ b/maxscale-system-test/mdbci/run_test_snapshot.sh @@ -58,13 +58,23 @@ fi . ${script_dir}/set_env.sh "$name" -${mdbci_dir}/mdbci sudo --command 'yum remove maxscale -y' $name/maxscale -${mdbci_dir}/mdbci sudo --command 'yum clean all' $name/maxscale +if [ ${maxscale_N} -gt 1 ] ; then + maxscales_vm=`env | grep maxscale | grep network | sed 's/_network.*//' | grep "_"` +else + maxscales_vm="maxscale" +fi -${mdbci_dir}/mdbci setup_repo --product maxscale_ci --product-version ${target} $name/maxscale -${mdbci_dir}/mdbci install_product --product maxscale_ci $name/maxscale +for maxscale_vm_name in ${maxscales_vm} +do + ${mdbci_dir}/mdbci sudo --command 'yum remove maxscale -y' $name/${maxscale_vm_name} + ${mdbci_dir}/mdbci sudo --command 'yum clean all' $name/${maxscale_vm_name} + + ${mdbci_dir}/mdbci setup_repo --product maxscale_ci --product-version ${target} $name/${maxscale_vm_name} + ${mdbci_dir}/mdbci install_product --product maxscale_ci $name/${maxscale_vm_name} + + checkExitStatus $? "Error installing Maxscale" $snapshot_lock_file +done -checkExitStatus $? "Error installing Maxscale" $snapshot_lock_file cd ${script_dir}/..