tests: Make "make check-accept" accept new files

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2020-07-28 06:24:17 +02:00
parent e823a4f055
commit ddefd7173e

View file

@ -283,7 +283,8 @@ normalize()
cmp_out1() cmp_out1()
{ {
local i=$1 exp="${2-$testdir/${1##*/}}" local i=$1 master="${2-$testdir/${1##*/}}"
local exp="$master"
local act="sandbox/$i" local act="sandbox/$i"
local nrm="sandbox/normalized-${i##*/}" local nrm="sandbox/normalized-${i##*/}"
@ -308,7 +309,7 @@ cmp_out1()
elif [ "$EMPIRE_CHECK_ACCEPT" ] elif [ "$EMPIRE_CHECK_ACCEPT" ]
then then
echo "$i CHANGED" echo "$i CHANGED"
cp "$nrm" "$exp" cp "$nrm" "$master"
else else
failed=y failed=y
echo "$i FAIL" echo "$i FAIL"