aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2023-05-10 15:55:24 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2023-05-10 15:55:24 +0200
commitaf58e6d6d4d1fdb4359c878df30c4184c72c76ef (patch)
tree343ea107027fcc3f2d989bd5891108cce81844fa
parentfbff99a8bcd9b1b4847e9624e0d2654f1a23f785 (diff)
Enable multi-screen and list screens
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: I315657ac59d0a2aee20974215e426810b412985c
-rwxr-xr-xcommon/scripts/agl-screenshot-test.sh9
1 files 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