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

Unified Diff: tools/mb/mb_unittest.py

Issue 2503503002: MB: Run test with gtest-parallel on swarming. (Closed)
Patch Set: Fixed some bugs. Created 4 years, 1 month 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: tools/mb/mb_unittest.py
diff --git a/tools/mb/mb_unittest.py b/tools/mb/mb_unittest.py
index b70af005e0fe79b4d55a4224899059f59fee0b94..f4cf1636f33ad22bbeff2778741d7b2afb73ea2c 100755
--- a/tools/mb/mb_unittest.py
+++ b/tools/mb/mb_unittest.py
@@ -347,37 +347,11 @@ class UnitTest(unittest.TestCase):
def test_gn_gen_swarming(self):
files = {
- '/tmp/swarming_targets': 'base_unittests\n',
- '/fake_src/testing/buildbot/gn_isolate_map.pyl': (
- "{'base_unittests': {"
- " 'label': '//base:base_unittests',"
- " 'type': 'raw',"
- " 'args': [],"
- "}}\n"
- ),
- '/fake_src/out/Default/base_unittests.runtime_deps': (
- "base_unittests\n"
- ),
- }
- mbw = self.fake_mbw(files)
- self.check(['gen',
- '-c', 'gn_debug_goma',
- '--swarming-targets-file', '/tmp/swarming_targets',
- '//out/Default'], mbw=mbw, ret=0)
- self.assertIn('/fake_src/out/Default/base_unittests.isolate',
- mbw.files)
- self.assertIn('/fake_src/out/Default/base_unittests.isolated.gen.json',
- mbw.files)
-
- def test_gn_gen_swarming_script(self):
- files = {
'/tmp/swarming_targets': 'cc_perftests\n',
'/fake_src/testing/buildbot/gn_isolate_map.pyl': (
"{'cc_perftests': {"
" 'label': '//cc:cc_perftests',"
- " 'type': 'script',"
- " 'script': '/fake_src/out/Default/test_script.py',"
- " 'args': [],"
+ " 'type': 'console_test_launcher',"
"}}\n"
),
'c:\\fake_src\out\Default\cc_perftests.exe.runtime_deps': (
@@ -403,7 +377,7 @@ class UnitTest(unittest.TestCase):
'/fake_src/testing/buildbot/gn_isolate_map.pyl': (
"{'base_unittests': {"
" 'label': '//base:base_unittests',"
- " 'type': 'raw',"
+ " 'type': 'non_parallel',"
" 'args': [],"
"}}\n"
),
@@ -428,7 +402,7 @@ class UnitTest(unittest.TestCase):
'/fake_src/testing/buildbot/gn_isolate_map.pyl': (
"{'base_unittests': {"
" 'label': '//base:base_unittests',"
- " 'type': 'raw',"
+ " 'type': 'windowed_test_launcher',"
" 'args': [],"
"}}\n"
),

Powered by Google App Engine
This is Rietveld 408576698