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

Unified Diff: tools/bots/ddc_tests.py

Issue 2960343002: Start getting the DDC bot to run tests using test.dart. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « tools/bots/bot_utils.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/ddc_tests.py
diff --git a/tools/bots/ddc_tests.py b/tools/bots/ddc_tests.py
index 5d66befcca544b5327a3ba1a523b0f04012efa39..51068ba5e4716c7ab2e1484567f4697799eb173c 100644
--- a/tools/bots/ddc_tests.py
+++ b/tools/bots/ddc_tests.py
@@ -13,22 +13,19 @@ import subprocess
import bot
import bot_utils
-utils = bot_utils.GetUtils()
+TARGETS = [
+ 'language_strong',
+ 'corelib_strong',
+ 'lib_strong'
+]
-BUILD_OS = utils.GuessOS()
-
-(bot_name, _) = bot.GetBotName()
-CHANNEL = bot_utils.GetChannelFromName(bot_name)
+FLAGS = [
+ '--strong'
+]
if __name__ == '__main__':
- with utils.ChangedWorkingDirectory('pkg/dev_compiler'):
- dart_exe = utils.CheckedInSdkExecutable()
-
- # These two calls mirror pkg/dev_compiler/tool/test.sh.
- bot.RunProcess([dart_exe, 'tool/build_pkgs.dart', 'test'])
- bot.RunProcess([dart_exe, 'test/all_tests.dart'])
-
- # TODO(vsm): Our bots do not have node / npm installed.
- # These mirror pkg/dev_compiler/tool/browser_test.sh.
- # bot.RunProcess(['npm', 'install'])
- # bot.RunProcess(['npm', 'test'], {'CHROME_BIN': 'chrome'})
+ (bot_name, _) = bot.GetBotName()
+ system = bot_utils.GetSystemFromName(bot_name)
+ info = bot.BuildInfo('dartdevc', 'chrome', 'release', system,
+ arch='x64', checked=True)
+ bot.RunTest('dartdevc', info, TARGETS, flags=FLAGS)
« no previous file with comments | « tools/bots/bot_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698