From 141d53b467b9c2af1f300c4dadf3f041ff5b2ee5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 2 Jun 2020 00:02:24 +0300 Subject: Update runtest ci script for support offset from variable --- tools/ci/scripts/runtest.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/ci/scripts/runtest.sh b/tools/ci/scripts/runtest.sh index dc2aa108c..41fb1c7c4 100755 --- a/tools/ci/scripts/runtest.sh +++ b/tools/ci/scripts/runtest.sh @@ -131,6 +131,10 @@ function imagessame { fi } +if [[ -z "${ABOUTYOFFSET}" ]]; then + export ABOUTYOFFSET="395" +fi + run check_is_run @@ -232,7 +236,7 @@ send_command "/sendmousekey 500 20 1" send_command "/screenshot about.png" # open about manaplus page -send_command "/sendmousekey 300 395 1" +send_command "/sendmousekey 300 ${ABOUTYOFFSET} 1" send_command "/screenshot about2.png" imagesdiff about.png about2.png -- cgit v1.2.3-60-g2f50