Changeset 160051 in webkit


Ignore:
Timestamp:
Dec 3, 2013, 3:26:46 PM (12 years ago)
Author:
fpizlo@apple.com
Message:

REGRESSION: repro scripts disappear when you rerun tests
https://bugs.webkit.org/show_bug.cgi?id=125184

Reviewed by Mark Hahnenberg.

This bug made it difficult to quickly see if a test that recently failed is still
failing while also running a new batch of tests.

Repro scripts are supposed to stay around until you delete them explicitly. This
patch accomplishes that.

  • Scripts/run-jsc-stress-tests:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r160048 r160051  
     12013-12-03  Filip Pizlo  <fpizlo@apple.com>
     2
     3        REGRESSION: repro scripts disappear when you rerun tests
     4        https://bugs.webkit.org/show_bug.cgi?id=125184
     5
     6        Reviewed by Mark Hahnenberg.
     7       
     8        This bug made it difficult to quickly see if a test that recently failed is still
     9        failing while also running a new batch of tests.
     10
     11        Repro scripts are supposed to stay around until you delete them explicitly. This
     12        patch accomplishes that.
     13
     14        * Scripts/run-jsc-stress-tests:
     15
    1162013-12-03  peavo@outlook.com  <peavo@outlook.com>
    217
  • trunk/Tools/Scripts/run-jsc-stress-tests

    r160048 r160051  
    908908def eachResultFile(startingDir, &block)
    909909    dirsToClean = [startingDir]
    910     until dirsToClean.empty? do
     910    until dirsToClean.empty?
    911911        nextDir = dirsToClean.pop
    912912        Dir.foreach(nextDir) {
     
    11401140end
    11411141
    1142 FileUtils.rm_rf $outputDir if $outputDir.directory? and not $bundle
     1142def clean(file)
     1143    FileUtils.rm_rf file unless $bundle
     1144end
     1145
     1146clean($outputDir + "failed")
     1147clean($outputDir + ".vm")
     1148clean($outputDir + ".runner")
     1149clean($outputDir + ".tests")
     1150clean($outputDir + "_payload")
     1151
    11431152Dir.mkdir($outputDir) unless $outputDir.directory?
    1144 
    1145 begin
    1146     File.delete($outputDir + "failed")
    1147 rescue
    1148 end
    11491153
    11501154$outputDir = $outputDir.realpath
     
    11531157prepareBundle unless $bundle
    11541158
    1155 puts " "
     1159puts
    11561160
    11571161prepareTestRunner unless $bundle
Note: See TracChangeset for help on using the changeset viewer.