8258293: tools/jpackage/share/RuntimePackageTest.java#id0 with RuntimePackageTest.testUsrInstallDir2
Reviewed-by: almatvee, herrick
This commit is contained in:
parent
7aac4dc175
commit
61cbf0fffe
@ -126,7 +126,11 @@ public class RuntimePackageTest {
|
||||
|
||||
private static Set<Path> listFiles(Path root) throws IOException {
|
||||
try (var files = Files.walk(root)) {
|
||||
return files.map(root::relativize).collect(Collectors.toSet());
|
||||
// Ignore files created by system prefs if any.
|
||||
final Path prefsDir = Path.of(".systemPrefs");
|
||||
return files.map(root::relativize)
|
||||
.filter(x -> !x.startsWith(prefsDir))
|
||||
.collect(Collectors.toSet());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user