Skip to content

Commit 1d2b6ac

Browse files
committed
change permissions of domain pv dir
1 parent de47124 commit 1d2b6ac

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/BaseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static void initialize(String appPropsFile) throws Exception {
186186
logger.info("Adding file handler, logging to file at " + resultDir + "/java_test_suite.out");
187187

188188
// for manual/local run, create file handler, create PVROOT
189-
if (!JENKINS) {
189+
if (!JENKINS && !SHARED_CLUSTER) {
190190
logger.info("Creating PVROOT " + pvRoot);
191191
Files.createDirectories(Paths.get(pvRoot));
192192
ExecResult result = ExecCommand.exec("chmod -R 777 " + pvRoot);

integration-tests/src/test/java/oracle/kubernetes/operator/utils/PersistentVolume.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ public PersistentVolume(String dirPath, Map pvMap) throws Exception {
2323
this.pvMap = pvMap;
2424

2525
String cmd =
26-
/* BaseTest.getProjectRoot()
27-
+ "/src/integration-tests/bash/job.sh \"mkdir -p "
28-
+ dirPath
29-
+ "\""; */
30-
3126
BaseTest.getProjectRoot()
32-
+ "/src/integration-tests/bash/krun.sh -m "
33-
+ BaseTest.getPvRoot()
34-
+ ":/scratch -t 60 -c \"mkdir -p "
27+
+ "/src/integration-tests/bash/job.sh \"mkdir -m 777 -p "
3528
+ dirPath
3629
+ "\"";
30+
31+
/* BaseTest.getProjectRoot()
32+
+ "/src/integration-tests/bash/krun.sh -m "
33+
+ BaseTest.getPvRoot()
34+
+ ":/scratch -t 60 -c \"mkdir -p "
35+
+ dirPath
36+
+ "\""; */
3737
ExecResult result = ExecCommand.exec(cmd);
3838
if (result.exitValue() != 0) {
3939
throw new RuntimeException(

0 commit comments

Comments
 (0)