File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator/utils
src/integration-tests/bash Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -868,6 +868,15 @@ protected void createPV() throws Exception {
868
868
BaseTest .getPvRoot () + "/acceptance_test_pv/persistentVolume-" + domainUid );
869
869
870
870
pvMap .values ().removeIf (Objects ::isNull );
871
+
872
+ String cmd =
873
+ BaseTest .getProjectRoot ()
874
+ + "/src/integration-tests/bash/krun.sh -m "
875
+ + BaseTest .getPvRoot ()
876
+ + ":/scratch -c \" ls -ltr /scratch\" " ;
877
+ logger .info ("Check PVROOT by running " + cmd );
878
+ ExecResult result = TestUtils .exec (cmd );
879
+
871
880
// k8s job mounts PVROOT /scratch/<usr>/wl_k8s_test_results to /scratch, create PV/PVC
872
881
new PersistentVolume ("/scratch/acceptance_test_pv/persistentVolume-" + domainUid , pvMap );
873
882
}
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ if [ "${DELETE_FILES:-true}" = "true" ]; then
351
351
352
352
echo @@ Launching run to delete all pv contents. This runs in the k8s cluster, /sharedparent mounts PV_ROOT.
353
353
# $SCRIPTPATH/job.sh "rm -fr /scratch/acceptance_test_pv"
354
- $SCRIPTPATH /krun.sh -i openjdk:11-oracle -m " ${PV_ROOT} :/sharedparent" -c ' rm -fr /sharedparent/acceptance_test_pv'
354
+ $SCRIPTPATH /krun.sh -i openjdk:11-oracle -t 300 - m " ${PV_ROOT} :/sharedparent" -c ' rm -fr /sharedparent/acceptance_test_pv'
355
355
[ " $? " = " 0" ] || SUCCESS=" 1"
356
356
echo @@ SUCCESS=$SUCCESS
357
357
You can’t perform that action at this time.
0 commit comments