Skip to content

Commit

Permalink
forward along GLIDEIN_PARROT_TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed May 1, 2017
1 parent 26c28ef commit e7aa9e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions glidein_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ else
fi
fi

# check the parrot tmp
if [ "x${GLIDEIN_PARROT_TMP}" != "x" ]; then
if [ ! -d ${GLIDEIN_PARROT_TMP} ]; then
mkdir ${GLIDEIN_PARROT_TMP}
fi
fi

# test for cvmfs
CVMFS="false"
if [ -e /cvmfs/icecube.opensciencegrid.org/py2-v1/setup.sh ]; then
Expand All @@ -152,6 +159,7 @@ $@
EOF
chmod +x $PWD/parrot_job_env.sh
if /usr/bin/env -i \
GLIDEIN_PARROT_TMP=${GLIDEIN_PARROT_TMP} \
GLIDEIN_PARROT=${PWD}/GLIDEIN_PARROT \
_CONDOR_SCRATCH_DIR=${PWD} \
_CONDOR_SLOT="" \
Expand Down
2 changes: 2 additions & 0 deletions glidein_template/user_job_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ if [ "$USE_PARROT" = "y" ] && [ -z "$_CONDOR_JOB_PIDS" ]; then
# We are calling run_parrot here, which calls parrot_run to run the job.
if [ ! -e $JOB_WRAPPER ]; then
exec /usr/bin/env -i \
GLIDEIN_PARROT_TMP=${GLIDEIN_PARROT_TMP} \
GLIDEIN_PARROT=${GLIDEIN_PARROT} \
_CONDOR_SCRATCH_DIR=${_CONDOR_SCRATCH_DIR} \
_CONDOR_SLOT=${_CONDOR_SLOT} \
Expand All @@ -86,6 +87,7 @@ if [ "$USE_PARROT" = "y" ] && [ -z "$_CONDOR_JOB_PIDS" ]; then
${GLIDEIN_PARROT}/run_parrot "$@"
else
exec /usr/bin/env -i \
GLIDEIN_PARROT_TMP=${GLIDEIN_PARROT_TMP} \
GLIDEIN_PARROT=${GLIDEIN_PARROT} \
_CONDOR_SCRATCH_DIR=${_CONDOR_SCRATCH_DIR} \
_CONDOR_SLOT=${_CONDOR_SLOT} \
Expand Down

0 comments on commit e7aa9e5

Please sign in to comment.