From af58e6d6d4d1fdb4359c878df30c4184c72c76ef Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Wed, 10 May 2023 15:55:24 +0200 Subject: Enable multi-screen and list screens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Simon Möller Change-Id: I315657ac59d0a2aee20974215e426810b412985c --- common/scripts/agl-screenshot-test.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common/scripts/agl-screenshot-test.sh b/common/scripts/agl-screenshot-test.sh index ca84b1c..2e603c1 100755 --- a/common/scripts/agl-screenshot-test.sh +++ b/common/scripts/agl-screenshot-test.sh @@ -80,10 +80,11 @@ fi AGL_SCREENSHOOTER=/usr/bin/agl-screenshooter + #su - $AGLDRIVER -c "..." do_screenshot() { - su - $AGLDRIVER -c "XDG_RUNTIME_DIR=/run/user/1001 $AGL_SCREENSHOOTER" + su - $AGLDRIVER -c "XDG_RUNTIME_DIR=/run/user/1001 $AGL_SCREENSHOOTER -a" return $? } @@ -99,6 +100,8 @@ rm -rf /home/agl-driver/agl-screenshot-*.png # give it a bit more time to display #sleep 60 +su - $AGLDRIVER -c "XDG_RUNTIME_DIR=/run/user/1001 $AGL_SCREENSHOOTER -l" + if do_screenshot ; then echo "Screenshot taken" else @@ -108,6 +111,8 @@ else exit 127 fi +ls /home/agl-driver/agl-screenshot* + REF_IMAGE_SHA1SUM=`sha1sum ${REF_IMAGE} | awk -F ' ' '{print $1}'` IMAGE_SHA1SUM=`sha1sum /home/agl-driver/agl-screenshot-*.png | awk -F ' ' '{print $1}'` @@ -123,13 +128,13 @@ set -x ./artiproxy-upload.sh $i $(basename $i) fi set +x - done echo "#########################" journalctl -t agl-compositor echo "#########################" journalctl -b --no-pager -a echo "#########################" + exit 127 fi -- cgit 1.2.3-korg