Skip to content
Permalink
Browse files

[JENKINS-9741] Failed to set executable bits in a test.

  • Loading branch information
ikedam committed Sep 23, 2014
1 parent 0424d28 commit 7e24b344197623a0c515ae160286fa26ff50900c
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
@@ -1425,12 +1425,12 @@ public void testFilePermission() throws Exception {
artifactDir.child("artifact.txt").write("some content", Charset.defaultCharset().name());
artifactDir.child("artifact.txt").chmod(0644);
artifactDir.child("artifactWithExecute.txt").write("some content", Charset.defaultCharset().name());
artifactDir.child("artifactWithExecute.txt").chmod(0644);
artifactDir.child("artifactWithExecute.txt").chmod(0755);
artifactDir.child("subdir").mkdirs();
artifactDir.child("subdir/artifactInSubdir.txt").write("some content", Charset.defaultCharset().name());
artifactDir.child("subdir/artifactInSubdir.txt").chmod(0644);
artifactDir.child("subdir/artifactInSubdir.txt").write("some content", Charset.defaultCharset().name());
artifactDir.child("subdir/artifactInSubdir.txt").chmod(0644);
artifactDir.child("subdir/artifactWithExecuteInSubdir.txt").write("some content", Charset.defaultCharset().name());
artifactDir.child("subdir/artifactWithExecuteInSubdir.txt").chmod(0755);

assertEquals(0644, artifactDir.child("artifact.txt").mode() & 0777);
assertEquals(0755, artifactDir.child("artifactWithExecute.txt").mode() & 0777);

0 comments on commit 7e24b34

Please sign in to comment.
You can’t perform that action at this time.