mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-08 05:34:00 -05:00
Merge remote-tracking branch 'origin/GP-0_Dan_testFixes-2025-03-25-1'
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user