Merge remote-tracking branch 'origin/GP-0_Dan_testFixes-2025-03-25-1'

This commit is contained in:
Ryan Kurtz
2025-03-25 09:15:47 -04:00
2 changed files with 13 additions and 8 deletions

View File

@@ -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<PyResult> future) {
}
CompletableFuture<PyResult> future) {}
@SuppressWarnings("resource") // Do not close stdin
protected ExecInPy execInPy(String script) throws IOException {

View File

@@ -106,11 +106,6 @@ public abstract class AbstractDbgEngTraceRmiTest extends AbstractGhidraHeadedDeb
private Path outFile;
private Path errFile;
@Before
public void assertOS() {
assumeTrue(OperatingSystem.CURRENT_OPERATING_SYSTEM == OperatingSystem.WINDOWS);
}
@BeforeClass
public static void setupPython() throws Throwable {
if (didSetupPython) {
@@ -145,6 +140,12 @@ public abstract class AbstractDbgEngTraceRmiTest extends AbstractGhidraHeadedDeb
pb.environment().put("WINDBG_DIR", "C:\\Program Files\\Amazon Corretto\\jdk21.0.3_9\\bin");
}
@BeforeClass
public static void assertOS() {
assumeTrue("Not on Windows",
OperatingSystem.CURRENT_OPERATING_SYSTEM == OperatingSystem.WINDOWS);
}
@Before
public void setupTraceRmi() throws Throwable {
traceRmi = addPlugin(tool, TraceRmiPlugin.class);