Skip to content

Commit

Permalink
Fix the "good" functionality in the test-and-diff infrastructure.
Browse files Browse the repository at this point in the history
It was bust because of a silly blunder on my part.
  • Loading branch information
sauclovian-g committed Dec 21, 2024
1 parent 0005149 commit 2bf1e35
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions intTests/support/test-and-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,13 @@ good() {
done

# now actually do it
if ! [ -f $TEST.log.good ] || \
! diff -q $TEST.log.good $TEST.log >/dev/null; then
echo "cp $TEST.log $TEST.log.good"
cp $TEST.log $TEST.log.good
fi
for TEST in $TESTS; do
if ! [ -f $TEST.log.good ] || \
! diff -q $TEST.log.good $TEST.log >/dev/null; then
echo "cp $TEST.log $TEST.log.good"
cp $TEST.log $TEST.log.good
fi
done
}

# shell function for the clean op
Expand Down

0 comments on commit 2bf1e35

Please sign in to comment.