diff options
Diffstat (limited to 'jjb/common/include-agl-run-test-short.sh')
-rw-r--r-- | jjb/common/include-agl-run-test-short.sh | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/jjb/common/include-agl-run-test-short.sh b/jjb/common/include-agl-run-test-short.sh index 162df146..6897fde5 100644 --- a/jjb/common/include-agl-run-test-short.sh +++ b/jjb/common/include-agl-run-test-short.sh @@ -11,20 +11,6 @@ set -x echo "## ${MACHINE} ##" cd $REPODIR -echo "default keyring config" -mkdir -p ~/.local/share/python_keyring/ -cat <<EOF > ~/.local/share/python_keyring/keyringrc.cfg -[backend] -default-keyring=keyring.backends.file.PlaintextKeyring -EOF - -cat <<EOF > ~/.local/token -$AGLLAVATOKEN -EOF - -lava-tool auth-add --token-file ~/.local/token https://agl-jenkins-user@porter.automotivelinux.org -rm -rf ~/.local/token || true - echo "## $TESTJOBFILE ##" if [ -e $TESTJOBFILE ] ; then @@ -99,18 +85,18 @@ sed -i -e "s#@REPLACE_URL_PREFIX@#${DEVICE_URL_PREFIX}#g" testjob.yaml cat testjob.yaml -lava-tool submit-job --block https://agl-jenkins-user@porter.automotivelinux.org testjob.yaml | tee .myjob +lava-tool submit-job --block https://agl-jenkins-user@lava.automotivelinux.org testjob.yaml | tee .myjob MYJOB=`cat .myjob | grep "submitted as job" | sed -e "s#submitted as job id: ##g"` echo "#### JOBID: $MYJOB #####" -( lava-tool job-status https://agl-jenkins-user@porter.automotivelinux.org $MYJOB | tee .status ) || true +( lava-tool job-status https://agl-jenkins-user@lava.automotivelinux.org $MYJOB | tee .status ) || true STATUS=`grep "Job Status:" .status | sed -e "s#Job Status: ##g"` if [ x"Complete" = x"$STATUS" ] ; then echo "YAY! $STATUS" - curl -o plain_output.yaml https://porter.automotivelinux.org/scheduler/job/$MYJOB/log_file/plain + curl -o plain_output.yaml https://lava.automotivelinux.org/scheduler/job/$MYJOB/log_file/plain cat plain_output.yaml | grep '"target",' | sed -e 's#- {"dt".*"lvl".*"msg":."##g' -e 's#"}$##g' # cleanup @@ -119,7 +105,7 @@ if [ x"Complete" = x"$STATUS" ] ; then exit 0 else echo "Nooooooooo! $STATUS" - curl -o plain_output.yaml https://porter.automotivelinux.org/scheduler/job/$MYJOB/log_file/plain + curl -o plain_output.yaml https://lava.automotivelinux.org/scheduler/job/$MYJOB/log_file/plain cat plain_output.yaml | grep '"target",' | sed -e 's#- {"dt".*"lvl".*"msg":."##g' -e 's#"}$##g' # cleanup |