diff options
author | Roland Grunberg | 2019-03-05 16:40:29 +0000 |
---|---|---|
committer | Roland Grunberg | 2019-03-05 19:35:30 +0000 |
commit | e3ef6878099ea80de43f187f975af50d658ca605 (patch) | |
tree | 41f0d941c7700cd6ed97967b04da8a5bf3ad9a9b /systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests | |
parent | 5ef04b15f93862d99d881a82442d1372d557a19f (diff) | |
download | org.eclipse.linuxtools-e3ef6878099ea80de43f187f975af50d658ca605.tar.gz org.eclipse.linuxtools-e3ef6878099ea80de43f187f975af50d658ca605.tar.xz org.eclipse.linuxtools-e3ef6878099ea80de43f187f975af50d658ca605.zip |
Fix bug in STPCompletionProcessorTest#prepareTrees()
Migration to new infrastructure (JIRO) uncovered an issue where
'.systemtapgui/' ($HOME/.systemtapgui/) doesn't exist in a pristine
build environment. Subsequent runs do succeed since other test cases
seem to create the folder structure. However, if the build environment
is fresh on every run it will always fail.
Change-Id: I517fd53dd0084049e01cbbb0ece0ef7050ec7c60
Reviewed-on: https://git.eclipse.org/r/138089
Tested-by: CI Bot
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests')
-rw-r--r-- | systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/editors/stp/STPCompletionProcessorTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/editors/stp/STPCompletionProcessorTest.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/editors/stp/STPCompletionProcessorTest.java index cefc400c29..6ff6141ae8 100644 --- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/editors/stp/STPCompletionProcessorTest.java +++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/editors/stp/STPCompletionProcessorTest.java @@ -77,8 +77,9 @@ public class STPCompletionProcessorTest { @BeforeClass public static void prepareTrees() { TapsetLibrary.stop(); - IPath path = new Path(System.getenv("HOME")). //$NON-NLS-1$ - append(".systemtapgui").append("TreeSettings").addFileExtension("xml"); //$NON-NLS-3$ + IPath path = new Path(System.getenv("HOME")).append(".systemtapgui"); //$NON-NLS-1$ //$NON-NLS-2$ + path.toFile().mkdirs(); // ensure folder will exist + path = path.append("TreeSettings").addFileExtension("xml"); //$NON-NLS-1$ //$NON-NLS-2$ try (InputStream is = FileLocator.openStream(FrameworkUtil.getBundle(STPCompletionProcessorTest.class), new Path("helpers/TreeSettings.xml"), false); |