]> git.pond.sub.org Git - empserver/commitdiff
tests: Make "make check-accept" accept new files
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 28 Jul 2020 04:24:17 +0000 (06:24 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:35 +0000 (10:41 +0100)
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
tests/test-common.sh

index 3f8228e8804ef6a9c8128d27970e955b6dd73835..8dbcb2b27eedb777a7ad020bbe4a52018b5ba19d 100644 (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 nrm="sandbox/normalized-${i##*/}"
 
     local act="sandbox/$i"
     local nrm="sandbox/normalized-${i##*/}"
 
@@ -308,7 +309,7 @@ cmp_out1()
     elif [ "$EMPIRE_CHECK_ACCEPT" ]
     then
        echo "$i CHANGED"
     elif [ "$EMPIRE_CHECK_ACCEPT" ]
     then
        echo "$i CHANGED"
-       cp "$nrm" "$exp"
+       cp "$nrm" "$master"
     else
        failed=y
        echo "$i FAIL"
     else
        failed=y
        echo "$i FAIL"