Fix test running inside of flatpaked intellij resolving custom XDG_DATA_HOME

This commit is contained in:
Paul Schaub 2022-11-25 16:04:14 +01:00
parent 0e8bf060f2
commit 6ae12c1262

View file

@ -18,7 +18,7 @@ public class BaseDirectoryProviderTest {
public void testGetDefaultBaseDir_Linux() { public void testGetDefaultBaseDir_Linux() {
assumeTrue(System.getProperty("os.name").equalsIgnoreCase("linux")); assumeTrue(System.getProperty("os.name").equalsIgnoreCase("linux"));
File baseDir = BaseDirectoryProvider.getDefaultBaseDirForOS("linux"); File baseDir = BaseDirectoryProvider.getDefaultBaseDirForOS("linux");
assertTrue(baseDir.getAbsolutePath().endsWith("/.local/share/pgp.cert.d")); assertTrue(baseDir.getAbsolutePath().endsWith("pgp.cert.d"));
} }
@Test @Test