Skip to content

Commit

Permalink
fix: do not do pilot tests if there's no pilot
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Mar 5, 2025
1 parent 46f680f commit 4ac5e20
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions tests/CI/install_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,29 +59,31 @@ echo -e "*** $(date -u) **** Client INSTALLATION START ****\n"

installDIRAC

echo -e "*** $(date -u) Getting a non privileged user\n" |& tee -a clientTestOutputs.txt
dirac-proxy-init "${DEBUG}" |& tee -a clientTestOutputs.txt
if [[ -z "${INSTALLATION_BRANCH}" ]]; then
echo -e "*** $(date -u) Getting a non privileged user\n" |& tee -a clientTestOutputs.txt
dirac-proxy-init "${DEBUG}" |& tee -a clientTestOutputs.txt

#-------------------------------------------------------------------------------#
echo -e "*** $(date -u) **** Submit a job ****\n"
#-------------------------------------------------------------------------------#
echo -e "*** $(date -u) **** Submit a job ****\n"

echo -e '[\n Arguments = "Hello World";\n Executable = "echo";\n Site = "DIRAC.Jenkins.ch";' > test.jdl
echo " JobName = \"${GITHUB_JOB}_$(date +"%Y-%m-%d_%T" | sed 's/://g')\"" >> test.jdl
echo "]" >> test.jdl
dirac-wms-job-submit test.jdl "${DEBUG}" |& tee -a clientTestOutputs.txt
echo -e '[\n Arguments = "Hello World";\n Executable = "echo";\n Site = "DIRAC.Jenkins.ch";' > test.jdl
echo " JobName = \"${GITHUB_JOB}_$(date +"%Y-%m-%d_%T" | sed 's/://g')\"" >> test.jdl
echo "]" >> test.jdl
dirac-wms-job-submit test.jdl "${DEBUG}" |& tee -a clientTestOutputs.txt

#-------------------------------------------------------------------------------#
echo -e "*** $(date -u) **** add a file ****\n"
#-------------------------------------------------------------------------------#
echo -e "*** $(date -u) **** add a file ****\n"

echo "${CLIENT_UPLOAD_BASE64}" > b64_lfn
base64 b64_lfn --decode > "${CLIENT_UPLOAD_FILE}"
dirac-dms-add-file "${CLIENT_UPLOAD_LFN}" "${CLIENT_UPLOAD_FILE}" S3-DIRECT
echo $?
echo "${CLIENT_UPLOAD_BASE64}" > b64_lfn
base64 b64_lfn --decode > "${CLIENT_UPLOAD_FILE}"
dirac-dms-add-file "${CLIENT_UPLOAD_LFN}" "${CLIENT_UPLOAD_FILE}" S3-DIRECT
echo $?

#-------------------------------------------------------------------------------#
echo -e "*** $(date -u) **** Submit a job with an input ****\n"
#-------------------------------------------------------------------------------#
echo -e "*** $(date -u) **** Submit a job with an input ****\n"

echo -e '[\n Arguments = "Hello World";\n Executable = "echo";\n Site = "DIRAC.Jenkins.ch";\n InputData = "/vo/test_lfn.txt";' > test_dl.jdl
echo " JobName = \"${GITHUB_JOB}_$(date +"%Y-%m-%d_%T" | sed 's/://g')\"" >> test_dl.jdl
echo "]" >> test_dl.jdl
dirac-wms-job-submit test_dl.jdl "${DEBUG}" |& tee -a clientTestOutputs.txt
echo -e '[\n Arguments = "Hello World";\n Executable = "echo";\n Site = "DIRAC.Jenkins.ch";\n InputData = "/vo/test_lfn.txt";' > test_dl.jdl
echo " JobName = \"${GITHUB_JOB}_$(date +"%Y-%m-%d_%T" | sed 's/://g')\"" >> test_dl.jdl
echo "]" >> test_dl.jdl
dirac-wms-job-submit test_dl.jdl "${DEBUG}" |& tee -a clientTestOutputs.txt
fi

0 comments on commit 4ac5e20

Please sign in to comment.