make sure the user scripts dir exists before creating a script in it

This commit is contained in:
Jason P. Leasure 2020-07-29 10:02:27 -04:00
parent 9c227cbff4
commit 1a598f26b2

View File

@ -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);
}