Skip to content

Commit

Permalink
Always clean test dir before single-module test.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Oct 7, 2024
1 parent 0adf713 commit 515cdd3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ private tuple[list[DocumentEdit], set[int]] getEditsAndModule(str stmtsStr, int

// Write the file to disk (and clean up later) to easily emulate typical editor behaviour
loc testDir = |memory://tests/rename/<moduleName>|;
println("Removing <testDir>");
remove(testDir);
loc moduleFileName = testDir + "rascal" + "<moduleName>.rsc";
writeFile(moduleFileName, moduleStr);

Expand Down

0 comments on commit 515cdd3

Please sign in to comment.