diff --git a/ax-command/src/test/java/com/g2forge/alexandria/command/invocation/runner/TestICommandRunner.java b/ax-command/src/test/java/com/g2forge/alexandria/command/invocation/runner/TestICommandRunner.java index 24e3c71b..80639a4d 100644 --- a/ax-command/src/test/java/com/g2forge/alexandria/command/invocation/runner/TestICommandRunner.java +++ b/ax-command/src/test/java/com/g2forge/alexandria/command/invocation/runner/TestICommandRunner.java @@ -7,7 +7,9 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; +import java.nio.file.attribute.PosixFilePermission; import java.util.ArrayList; +import java.util.EnumSet; import java.util.List; import java.util.stream.Collectors; @@ -48,6 +50,13 @@ public void before() { throw new RuntimeIOException("Failed to download clireport", e); } HAssert.assertTrue(Files.exists(cliReport)); + try { + Files.setPosixFilePermissions(cliReport, EnumSet.allOf(PosixFilePermission.class)); + } catch (UnsupportedOperationException e) { + // Ignore this - it's not required on platforms where it's not supported + } catch (IOException e) { + throw new RuntimeIOException("Failed to mark clireport executable", e); + } } }