From a4a6af2239908713f60ddb8e4bb6480c198be4a1 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 20 Dec 2018 13:32:31 -0300 Subject: [PATCH] Add regression test for aseprite/aseprite#591 --- cli/save-as.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cli/save-as.sh b/cli/save-as.sh index 2e915a110..82a6017a7 100644 --- a/cli/save-as.sh +++ b/cli/save-as.sh @@ -156,3 +156,21 @@ for f = 1,3 do end EOF $ASEPRITE -b -script "$d/compare.lua" || exit 1 + +# --save-as without path +# https://github.com/aseprite/aseprite/issues/591 + +d=$t/save-as-without-path +mkdir $d +open $d +oldwd=$(pwd) +cd $d +$ASEPRITE -b -split-layers $oldwd/sprites/abcd.aseprite -save-as issue591.png || exit 1 +if [[ ! -f "issue591 (a).png" || + ! -f "issue591 (b).png" || + ! -f "issue591 (c).png" || + ! -f "issue591 (d).png" ]]; then + echo "FAIL: Regression detected (issue 591)" + exit 1 +fi +cd $oldwd