diff --git a/qa/vagrant/src/test/resources/packaging/scripts/20_tar_package.bats b/qa/vagrant/src/test/resources/packaging/scripts/20_tar_package.bats index ddad9979a50..2ceeb2a72b9 100644 --- a/qa/vagrant/src/test/resources/packaging/scripts/20_tar_package.bats +++ b/qa/vagrant/src/test/resources/packaging/scripts/20_tar_package.bats @@ -80,7 +80,7 @@ setup() { sudo chmod +x $JAVA [ "$status" -eq 1 ] - [ "$output" = "Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME" ] + [[ "$output" == *"Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME"* ]] } ################################## diff --git a/qa/vagrant/src/test/resources/packaging/scripts/plugin_test_cases.bash b/qa/vagrant/src/test/resources/packaging/scripts/plugin_test_cases.bash index c1872d725ec..0585924fddb 100644 --- a/qa/vagrant/src/test/resources/packaging/scripts/plugin_test_cases.bash +++ b/qa/vagrant/src/test/resources/packaging/scripts/plugin_test_cases.bash @@ -134,7 +134,7 @@ fi sudo chmod +x $JAVA [ "$status" -eq 1 ] - [ "$output" = "Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME" ] + [[ "$output" == *"Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME"* ]] } # Note that all of the tests from here to the end of the file expect to be run