image outputs now contain the terminal name

This commit is contained in:
Mitchell Hashimoto
2022-07-17 19:12:31 -07:00
parent ad0e1c150f
commit fd1b306c47
5 changed files with 5 additions and 3 deletions

View File

@ -36,7 +36,8 @@ RUN apk add --no-cache \
# Our terminals
RUN apk add --no-cache \
alacritty
alacritty \
xterm
COPY --from=vttest /vttest /usr/bin/vttest

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@ -33,7 +33,8 @@ while [[ "$#" -gt 0 ]]; do
done
# If we're updating, then just update the file in-place
if [ "$ARG_UPDATE" -eq 1 ]; then ARG_OUT="${ARG_CASE}.png"; fi
GOLDEN_OUT="${ARG_CASE}.${ARG_EXEC}.png"
if [ "$ARG_UPDATE" -eq 1 ]; then ARG_OUT=$GOLDEN_OUT; fi
bad=0
if [ -z "$ARG_EXEC" ]; then bad=1; fi
@ -93,7 +94,7 @@ echo "Capturing screen shot..."
import -window root ${ARG_OUT}
echo "Comparing results..."
DIFF=$(compare -metric AE ${ARG_OUT} ${ARG_CASE}.png null: 2>&1)
DIFF=$(compare -metric AE ${ARG_OUT} ${GOLDEN_OUT} null: 2>&1)
if [ $? -eq 2 ] ; then
echo " Comparison failed (error)"
exit 1