Browse Source

Remove `eof` from expect script (#84287)

Hopefully fixes #84204. When we build an expect script in the packaging
tests, we insert `expect eof` after supplying the password. This makes
expect wait until the output of ES is closed, which isn't actaully what
we want, as we then go on to expect on a number of other outputs. So,
remove this `eof`, and let the other expectations do their work.
Rory Hunter 3 years ago
parent
commit
fb1f860b5d

+ 0 - 1
qa/os/src/test/java/org/elasticsearch/packaging/util/Archives.java

@@ -255,7 +255,6 @@ public class Archives {
         String keystoreScript = keystorePassword == null ? "" : """
         String keystoreScript = keystorePassword == null ? "" : """
             expect "Elasticsearch keystore password:"
             expect "Elasticsearch keystore password:"
             send "%s\\r"
             send "%s\\r"
-            expect eof
             """.formatted(keystorePassword);
             """.formatted(keystorePassword);
         String checkStartupScript = daemonize ? "" : """
         String checkStartupScript = daemonize ? "" : """
             expect {
             expect {