You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cleanup externally set directories in session tests #903
The customizations for session tests to define custom workspaces and
configurations currently only cleanup the contents of the used test
directories if they are created by the customization implementation on
their own. When a path is passed from outside, e.g., injected via a
JUnit TempDir annotation, the folder is not cleaned up, but usually the
provider will not do that on its own. In particular, JUnit only removes
an injected temporary directory but not its contents.
With this change, the data created by session tests in custom workspace
or configuration folders is always cleaned up after the test, no matter
who created the temporary directory.
Contributes to
#903
Copy file name to clipboardExpand all lines: runtime/tests/org.eclipse.core.tests.harness/src/org/eclipse/core/tests/harness/session/customization/CustomSessionConfigurationImpl.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -138,13 +138,13 @@ public CustomSessionConfiguration setReadOnly() {
Copy file name to clipboardExpand all lines: runtime/tests/org.eclipse.core.tests.harness/src/org/eclipse/core/tests/harness/session/customization/CustomSessionWorkspaceImpl.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,14 @@ public CustomSessionWorkspaceImpl() {
0 commit comments