From 0c120255990f3d349092bf39cdad5618d48a5aa6 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Fri, 18 Sep 2020 08:22:28 -0400 Subject: [PATCH] Do not restart mysql after setup when running automated tests --- setup/so-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index c12ae0a8c..b383de6c9 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1021,7 +1021,11 @@ install_cleanup() { # Clean up after ourselves rm -rf "$temp_install_dir" - # If Mysql is running stop it. + # All cleanup prior to this statement must be compatible with automated testing. Cleanup + # that will disrupt automated tests should be placed beneath this statement. + [ -n "$TESTING" ] && return + + # If Mysql is running stop it /usr/sbin/so-mysql-stop }