]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't update the baseline file when the result of the test is identical
authorMarcel Moolenaar <marcel@FreeBSD.org>
Mon, 22 Sep 2014 16:37:37 +0000 (16:37 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Mon, 22 Sep 2014 16:37:37 +0000 (16:37 +0000)
commit66829acbb34cf3d0901aeb4eadb2f2ec53a5a673
tree075355001ad3104ef981d50b60b7f2dba667746c
parent24211cc919d85d1e792df708eb2a0354caa28754
Don't update the baseline file when the result of the test is identical
to the baseline. Since we don't run gzip with the -n option, the output
of gzip varies for identical result files if and when they are created
at different time. Ouch...

Rather than add -n and commit a 600K+ diff for the changes to all the .uu
files, it's less of a churn to uudecode and gunzip the baseline file and
compare that to the new result file to determine if the baseline file
needs to be updated.

This way, "atf-sh mkimg.sh rebase" can be run as many times as people like
and a subsequent "svn status" will not show unnecessary diffs.
usr.bin/mkimg/tests/mkimg.sh