diff --git a/Ghidra/Test/DebuggerIntegrationTest/src/test.slow/java/agent/TraceRmiPythonClientTest.java b/Ghidra/Test/DebuggerIntegrationTest/src/test.slow/java/agent/TraceRmiPythonClientTest.java index b02313bb68..90c86fc9c7 100644 --- a/Ghidra/Test/DebuggerIntegrationTest/src/test.slow/java/agent/TraceRmiPythonClientTest.java +++ b/Ghidra/Test/DebuggerIntegrationTest/src/test.slow/java/agent/TraceRmiPythonClientTest.java @@ -106,7 +106,12 @@ public class TraceRmiPythonClientTest extends AbstractGhidraHeadedDebuggerTest { } protected Path getPathToPython() { - return Paths.get(DummyProc.which("python")); + try { + return Paths.get(DummyProc.which("python3")); + } + catch (RuntimeException e) { + return Paths.get(DummyProc.which("python")); + } } @Before @@ -169,8 +174,7 @@ public class TraceRmiPythonClientTest extends AbstractGhidraHeadedDebuggerTest { } protected record ExecInPy(PtySession session, PrintWriter stdin, - CompletableFuture future) { - } + CompletableFuture future) {} @SuppressWarnings("resource") // Do not close stdin protected ExecInPy execInPy(String script) throws IOException {