On 23 January 2018 11:31:27 CET, Tamar Christina <tamar.christ...@arm.com> wrote: >Hi All, > >This patch makes dg-cmp-results.sh reject the use of log files in the >comparison. >Often when given a log file dg-cmp-results will give incomplete/wrong >output and >using log instead of sum is one autocomplete tab away. > >Instead have the tool guard against such mistakes.
+if test "$OEXT" = "log"; then + echo "<old-file> must be a sum file instead of log file." + exit 1 +fi + +if test "$NEXT" = "log"; then + echo "<old-file> must be a sum file instead of log file." typo: new-file + exit 1 +fi > >Ok for trunk? > >Thanks, >Tamar > >contrib/ >2018-01-23 Tamar Christina <tamar.christ...@arm.com> > > * dg-cmp-results.sh: Reject log files from comparison.