From: Jan-Simon Moeller Date: Sun, 4 Jun 2023 13:12:23 +0000 (+0200) Subject: Work in /home/agl-driver X-Git-Tag: 17.90.0~3 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fqa-testdefinitions.git;a=commitdiff_plain;h=ee7efbfe5a2763f063f1da0b43af28851f65097e Work in /home/agl-driver Signed-off-by: Jan-Simon Moeller Change-Id: I364ee1531fbd6444166b3404e3402d5321b1afa9 --- diff --git a/common/scripts/agl-screenshot-test.sh b/common/scripts/agl-screenshot-test.sh index 0d58f04..769a98a 100755 --- a/common/scripts/agl-screenshot-test.sh +++ b/common/scripts/agl-screenshot-test.sh @@ -9,6 +9,9 @@ SCRIPTDIR=`dirname $(readlink -f $0)` XDG_RUNTIME_DIR=/run/user/1001 AGLDRIVER=agl-driver +# go to output directory + +cd /home/$AGLDRIVER @@ -112,14 +115,14 @@ else exit 127 fi -ls /home/agl-driver/agl-screenshot* +ls agl-screenshot* REF_IMAGE_SHA1SUM=`sha1sum ${REF_IMAGE} | awk -F ' ' '{print $1}'` FINALRET=1 -for SCREENSHOT in /home/agl-driver/agl-screenshot-*.png ; do +for SCREENSHOT in agl-screenshot-*.png ; do IMAGE_SHA1SUM=`sha1sum $SCREENSHOT | awk -F ' ' '{print $1}'` if [ "${REF_IMAGE_SHA1SUM}" == "${IMAGE_SHA1SUM}" ]; then @@ -134,7 +137,7 @@ for SCREENSHOT in /home/agl-driver/agl-screenshot-*.png ; do done if [ $FINALRET != 0 ] ; then - for i in /home/agl-driver/agl-screenshot-*.png ; do + for i in agl-screenshot-*.png ; do ${SCRIPTDIR}/./artiproxy-upload.sh $i "$i" done journalctl -b --no-pager -a > journal.txt