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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py

Issue 2616403004: [WPT Export] Add proper author to exported commits (Closed)
Patch Set: [WPT Export] Add proper author to exported commits Created 3 years, 11 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/webkitpy/w3c/local_wpt_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py
index bba09a84778458cadccd0b281558875f6acb9a3f..64967bbdeb4dc151d40460cb13f112e4ccacec72 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py
@@ -84,7 +84,17 @@ class LocalWPTTest(unittest.TestCase):
local_wpt = LocalWPT(host)
- local_branch_name = local_wpt.create_branch_with_patch('message', 'patch')
+ local_branch_name = local_wpt.create_branch_with_patch('message', 'patch', 'author')
self.assertEqual(len(host.executive.calls), 10)
self.assertEqual(local_branch_name, 'chromium-export-try')
- # TODO(jeffcarp): Add more specific assertions
+ self.assertEqual(host.executive.calls, [
+ ['git', 'clone', 'https://chromium.googlesource.com/external/w3c/web-platform-tests.git', '/tmp/wpt'],
+ ['git', 'reset', '--hard', 'HEAD'],
+ ['git', 'clean', '-fdx'],
+ ['git', 'checkout', 'origin/master'],
+ ['git', 'branch', '-a'],
+ ['git', 'branch', '-a'],
+ ['git', 'checkout', '-b', 'chromium-export-try'],
+ ['git', 'apply', '-'],
+ ['git', 'commit', '--author', 'author', '-am', 'message'],
+ ['git', 'push', 'github', 'chromium-export-try']])

Powered by Google App Engine
This is Rietveld 408576698