Skip to content

Commit 47bf6dd

Browse files
committed
CI: Add loop to check for the existence of the plotfile
1 parent 69bc73d commit 47bf6dd

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.gitlab-ci.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,15 @@ csd3-a100:
6262
- cd ${HOME}/${CI_PROJECT_DIR}/Examples/BinaryBH
6363
- make -j 8 ${BUILD_CONFIG}
6464
- flock ${HOME}/${QOS_INTR_LOCK_FILE} srun ${SRUN_FLAGS} ./main3d.gnu.DEBUG.MPI.CUDA.ex ./params_test.txt
65-
- ${AMREX_HOME}/Tools/Plotfile/fcompare.gnu.ex ${FCOMPARE_FLAGS} plt00008 ${HOME}/${CI_PROJECT_DIR}/.github/workflows/data/plt00008_compare/
65+
- count=0
66+
- do
67+
- if [[ -d plt00008 ]]; then
68+
- ${AMREX_HOME}/Tools/Plotfile/fcompare.gnu.ex ${FCOMPARE_FLAGS} plt00008 ${HOME}/${CI_PROJECT_DIR}/.github/workflows/data/plt00008_compare/
69+
break
70+
- else
71+
- sleep 30
72+
- fi
73+
- ((count++))
74+
- done while [ $count -le 5 ]
6675
after_script:
67-
- rm -rf ${HOME}/${QOS_INTR_LOCK_FILE}
68-
69-
70-
76+
- rm -rf ${HOME}/${QOS_INTR_LOCK_FILE}

0 commit comments

Comments
 (0)