diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-06-04 15:34:10 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-06-04 15:34:10 +0200 |
commit | bb9b102d3a79517cead966b2afc180a7711da7ff (patch) | |
tree | cc3a59c6c9723279694c852f12dffdbad0be0a55 | |
parent | ee7efbfe5a2763f063f1da0b43af28851f65097e (diff) |
Use full path to reference image
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I664757283777cc79f3b40bc043b07294a724b785
-rwxr-xr-x | common/scripts/agl-screenshot-test.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/common/scripts/agl-screenshot-test.sh b/common/scripts/agl-screenshot-test.sh index 769a98a..cb28c05 100755 --- a/common/scripts/agl-screenshot-test.sh +++ b/common/scripts/agl-screenshot-test.sh @@ -9,13 +9,18 @@ SCRIPTDIR=`dirname $(readlink -f $0)` XDG_RUNTIME_DIR=/run/user/1001 AGLDRIVER=agl-driver -# go to output directory +if [ -z $1 ] ; then + echo "No reference image passed" + exit 125 +fi +REF_IMAGE=`readlink -f $1` + +# go to output directory cd /home/$AGLDRIVER -REF_IMAGE="$1" if [ -z "${REF_IMAGE}" ]; then echo "No reference image passed" |