Skip to content

Commit

Permalink
Merge pull request #2171 from GaloisInc/dholland-test-and-diff
Browse files Browse the repository at this point in the history
Fix the "good" functionality in the test-and-diff infrastructure
  • Loading branch information
sauclovian-g authored Jan 6, 2025
2 parents 0005149 + 2bf1e35 commit b1f792a
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 b1f792a

Please sign in to comment.