diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-06-04 15:12:23 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-06-04 15:12:23 +0200 |
commit | ee7efbfe5a2763f063f1da0b43af28851f65097e (patch) | |
tree | b0a4789003285edf3c6ea932686d075984c9243f /common/scripts/agl-screenshot-test.sh | |
parent | 611748f8a416db6a79550286d1b7f5093f9a3273 (diff) |
Work in /home/agl-driver
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I364ee1531fbd6444166b3404e3402d5321b1afa9
Diffstat (limited to 'common/scripts/agl-screenshot-test.sh')
-rwxr-xr-x | common/scripts/agl-screenshot-test.sh | 9 |
1 files changed, 6 insertions, 3 deletions
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 |