8000 In the testsuite, pass $RABBITMQCTL to sub-makes explicitely · yezijiang/rabbitmq-java-client@0c6bf3f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c6bf3f

Browse files
committed
In the testsuite, pass $RABBITMQCTL to sub-makes explicitely
1 parent 473a928 commit 0c6bf3f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/src/com/rabbitmq/tools/Host.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.rabbitmq.client.impl.NetworkConnection;
2121

2222
import java.io.BufferedReader;
23+
import java.io.File;
2324
import java.io.IOException;
2425
import java.io.InputStream;
2526
import java.io.InputStreamReader;
@@ -101,7 +102,11 @@ public static Process rabbitmqctlIgnoreErrors(String command) throws IOException
101102
}
102103

103104
public static Process invokeMakeTarget(String command) throws IOException {
104-
return executeCommand("cd " + rabbitmqTestDir() + "; " + makeCommand() + " " + command);
105+
File rabbitmqctl = new File(rabbitmqctlCommand());
106+
return executeCommand(makeCommand() +
107+
" -C \'" + rabbitmqTestDir() + "\'" +
108+
" RABBITMQCTL=\'" + rabbitmqctl.getAbsolutePath() + "\'" +
109+
" " + command);
105110
}
106111

107112
private static String makeCommand()

0 commit comments

Comments
 (0)
0