diff --git a/setup/so-setup b/setup/so-setup index 9f386c4a6..440965ca1 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -181,8 +181,10 @@ if [ -n "$test_profile" ]; then # The below settings are hardcoded purely for automated testing purposes. TESTING=true - if [[ "$test_profile" =~ "-sensor-" || "$test_profile" =~ "-search-" ]]; then - HOSTNAME=$test_profile + if [[ "$test_profile" =~ "-sensor-" ]]; then + HOSTNAME=sensor + elif [[ "$test_profile" =~ "-search-" ]]; then + HOSTNAME=search else HOSTNAME=manager fi