Ghidra is a software reverse engineering (SRE) framework
make sure the user scripts dir exists before creating a script in it
Jason P. Leasure1a598f26b2c3
diff --git a/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/analysis/AnalysisManagerTest.java b/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/analysis/AnalysisManagerTest.javaindex 7ae454ef8b..b17a788c65 100644--- a/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/analysis/AnalysisManagerTest.java+++ b/Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/framework/analysis/AnalysisManagerTest.java@@ -78,6 +78,11 @@ public class AnalysisManagerTest extends AbstractGhidraHeadlessIntegrationTest {programBuilder.createMemory("AAA", "0x100", 0x1000);program = programBuilder.getProgram();analyzers = new ArrayList<>();++ // make sure the user scripts subdirectory exists for createScriptFile+ File userScriptsDir = new File(GhidraScriptUtil.USER_SCRIPTS_DIR);+ userScriptsDir.mkdirs();+GhidraScriptUtil.initialize(new BundleHost(), null);}