From ee7efbfe5a2763f063f1da0b43af28851f65097e Mon Sep 17 00:00:00 2001 From: Jan-Simon Moeller Date: Sun, 4 Jun 2023 15:12:23 +0200 Subject: Work in /home/agl-driver Signed-off-by: Jan-Simon Moeller Change-Id: I364ee1531fbd6444166b3404e3402d5321b1afa9 --- common/scripts/agl-screenshot-test.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'common') 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 -- cgit 1.2.3-korg