Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(919)

Unified Diff: third_party/WebKit/Tools/Scripts/update-w3c-test-expections

Issue 2136723002: Create test expectations line automatically from failing test results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored script to pass in Host object to main use its attributes Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/update-w3c-test-expections
diff --git a/third_party/WebKit/Tools/Scripts/update-w3c-test-expections b/third_party/WebKit/Tools/Scripts/update-w3c-test-expections
new file mode 100755
index 0000000000000000000000000000000000000000..3bb94275c64f3a4e7c3c76029ef4ba5a9f0d8a7c
--- /dev/null
+++ b/third_party/WebKit/Tools/Scripts/update-w3c-test-expections
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import sys
+
+from webkitpy.common import host
+from webkitpy.common.checkout.scm.git import Git
+from webkitpy.w3c.update_w3c_test_expectations import main
+
+if __name__ == "__main__":
+ _host = host.Host()
+ _host._scm = Git('.')
qyearsley 2016/07/18 22:55:28 It might also work if you call host.initialize_scm
+ _port = _host.port_factory.get()
qyearsley 2016/07/18 22:55:28 No need to use underscores here, since these are l
+ return_code = main(_host, _port)
+
+sys.exit(return_code)

Powered by Google App Engine
This is Rietveld 408576698