Commit ec0ab31d authored by fpizlo@apple.com's avatar fpizlo@apple.com

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:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1dbe9eab
2013-12-03 Filip Pizlo <fpizlo@apple.com>
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:
2013-12-03 peavo@outlook.com <peavo@outlook.com>
[Win] run-jsc-stress-tests has a great number of failures (2026/7606) on Windows
......
......@@ -907,7 +907,7 @@ end
def eachResultFile(startingDir, &block)
dirsToClean = [startingDir]
until dirsToClean.empty? do
until dirsToClean.empty?
nextDir = dirsToClean.pop
Dir.foreach(nextDir) {
| entry |
......@@ -1139,20 +1139,24 @@ def compressBundle
raise unless system(cmd)
end
FileUtils.rm_rf $outputDir if $outputDir.directory? and not $bundle
Dir.mkdir($outputDir) unless $outputDir.directory?
begin
File.delete($outputDir + "failed")
rescue
def clean(file)
FileUtils.rm_rf file unless $bundle
end
clean($outputDir + "failed")
clean($outputDir + ".vm")
clean($outputDir + ".runner")
clean($outputDir + ".tests")
clean($outputDir + "_payload")
Dir.mkdir($outputDir) unless $outputDir.directory?
$outputDir = $outputDir.realpath
$runnerDir = $outputDir + ".runner"
prepareBundle unless $bundle
puts " "
puts
prepareTestRunner unless $bundle
cleanRunnerDirectory if $bundle
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment