Title: [93502] trunk/Tools
- Revision
- 93502
- Author
- [email protected]
- Date
- 2011-08-22 03:05:48 -0700 (Mon, 22 Aug 2011)
Log Message
[ORWT] Fix --reset-results --add-platform-exceptions combo
https://bugs.webkit.org/show_bug.cgi?id=65464
Patch by Kristóf Kosztyó <[email protected]> on 2011-08-22
Reviewed by Csaba Osztrogonác.
* Scripts/old-run-webkit-tests:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (93501 => 93502)
--- trunk/Tools/ChangeLog 2011-08-22 09:17:00 UTC (rev 93501)
+++ trunk/Tools/ChangeLog 2011-08-22 10:05:48 UTC (rev 93502)
@@ -1,3 +1,12 @@
+2011-08-22 Kristóf Kosztyó <[email protected]>
+
+ [ORWT] Fix --reset-results --add-platform-exceptions combo
+ https://bugs.webkit.org/show_bug.cgi?id=65464
+
+ Reviewed by Csaba Osztrogonác.
+
+ * Scripts/old-run-webkit-tests:
+
2011-08-20 Adam Barth <[email protected]>
garden-o-matic summary.html should have UI for examining failures
Modified: trunk/Tools/Scripts/old-run-webkit-tests (93501 => 93502)
--- trunk/Tools/Scripts/old-run-webkit-tests 2011-08-22 09:17:00 UTC (rev 93501)
+++ trunk/Tools/Scripts/old-run-webkit-tests 2011-08-22 10:05:48 UTC (rev 93502)
@@ -954,8 +954,13 @@
}
if ($resetResults || !-f $expectedPNGPath) {
- mkpath catfile($expectedPixelDir, dirname($base)) if $testDirectory ne $expectedPixelDir;
- writeToFile($expectedPNGPath, $actualPNG);
+ if (!$addPlatformExceptions) {
+ mkpath catfile($expectedPixelDir, dirname($base)) if $testDirectory ne $expectedPixelDir;
+ writeToFile($expectedPNGPath, $actualPNG);
+ } else {
+ mkpath catfile($platformTestDirectory, dirname($base));
+ writeToFile("$platformTestDirectory/$base-$expectedTag.png", $actualPNG);
+ }
}
}
@@ -969,8 +974,13 @@
$result = "new";
if ($generateNewResults || $resetResults) {
- mkpath catfile($expectedDir, dirname($base)) if $testDirectory ne $expectedDir;
- writeToFile("$expectedDir/$expectedFileName", $actual);
+ if (!$addPlatformExceptions) {
+ mkpath catfile($expectedDir, dirname($base)) if $testDirectory ne $expectedDir;
+ writeToFile("$expectedDir/$expectedFileName", $actual);
+ } else {
+ mkpath catfile($platformTestDirectory, dirname($base));
+ writeToFile("$platformTestDirectory/$expectedFileName", $actual);
+ }
}
deleteExpectedAndActualResults($base);
recordActualResultsAndDiff($base, $actual);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes