[ET Trac] [Einstein Toolkit] #1872: test system does not detect extra lines in output files

Einstein Toolkit trac-noreply at einsteintoolkit.org
Tue May 3 06:15:56 CDT 2016


#1872: test system does not detect extra lines in output files
-----------------------+----------------------------------------------------
  Reporter:  rhaas     |       Owner:                     
      Type:  defect    |      Status:  new                
  Priority:  critical  |   Milestone:  ET_2016_11         
 Component:  Cactus    |     Version:  development version
Resolution:            |    Keywords:  testsuite          
-----------------------+----------------------------------------------------

Comment (by knarf):

 What about the following? This fixes the problem for me:
 {{{
 @@ -1783,6 +1783,16 @@ sub CompareTestFiles
              print "TESTSUITE ERROR: Didn't catch case in CompareFiles\n";
            }
          } #while
 +        while ($nline = <INNEW>)
 +        {
 +          # ignore trailing comment lines in new file
 +          last unless ($nline =~ /^\s*(["#].*)?$/);
 +        }
 +        if (!eof(INNEW))
 +        {
 +          $rundata->{"$thorn $test $file NFAILWEAK"}++;
 +          $rundata->{"$thorn $test $file NFAILSTRONG"}++;
 +        }

        }
        elsif (!-e $newfile && -s $oldfile)
 }}}

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1872#comment:2>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list