diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2024-09-12 18:47:09 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2024-09-12 18:48:12 +0200 |
commit | fe3a53679d59d45c55896c50a94508cc8d767229 (patch) | |
tree | 7251713b39adad0ff5337351bbf8c9b895dd24c5 | |
parent | 10f1f2e8ee25afaa39ae7e9533ba66a33aa1074b (diff) |
Add alternative upload for debugging.ricefish
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: Ie401c9b94f428f8a37dc366151d8a4178882602a
-rwxr-xr-x | common/scripts/agl-screenshot-test.sh | 4 | ||||
-rwxr-xr-x | common/scripts/artiproxy-upload.sh | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/common/scripts/agl-screenshot-test.sh b/common/scripts/agl-screenshot-test.sh index 7ac573d..c1bc50c 100755 --- a/common/scripts/agl-screenshot-test.sh +++ b/common/scripts/agl-screenshot-test.sh @@ -142,11 +142,13 @@ for SCREENSHOT in agl-screenshot-*.png ; do break else echo "A Screenshot does not match the reference image" + curl -F "file=@./${SCREENSHOT}" https://x0.at/ || true FINALRET=127 fi - done + + if [ $FINALRET != 0 ] ; then for i in agl-screenshot-*.png ; do ${SCRIPTDIR}/./artiproxy-upload.sh $i "$i" diff --git a/common/scripts/artiproxy-upload.sh b/common/scripts/artiproxy-upload.sh index 2d4302b..a4a5685 100755 --- a/common/scripts/artiproxy-upload.sh +++ b/common/scripts/artiproxy-upload.sh @@ -1,5 +1,8 @@ #!/bin/sh +curl --silent -F "file=@./$1" https://x0.at/ || true + + if [ -z "$PYARTIPROXY_IP" ];then echo "DEBUG: No PYARTIPROXY_IP variable, using fallbacks" |