Build SDK and DDC test packages on bots before running tests. (#30081)

The dartdevc_test target is a GN group that includes everything that
should be needed to run the dartdevc tests.
This commit is contained in:
Bob Nystrom 2017-07-05 17:09:48 -07:00 committed by GitHub
parent 7ed5e1c433
commit 788516a71d

View file

@ -24,8 +24,13 @@ FLAGS = [
]
if __name__ == '__main__':
(bot_name, _) = bot.GetBotName()
system = bot_utils.GetSystemFromName(bot_name)
info = bot.BuildInfo('dartdevc', 'drt', 'release', system,
arch='x64', checked=True)
bot.RunTest('dartdevc', info, TARGETS, flags=FLAGS)
with bot.BuildStep('Build SDK and dartdevc test packages'):
bot.RunProcess([sys.executable, './tools/build.py', '--mode=release',
'--arch=x64', 'dartdevc_test'])
with bot.BuildStep('Run tests'):
(bot_name, _) = bot.GetBotName()
system = bot_utils.GetSystemFromName(bot_name)
info = bot.BuildInfo('dartdevc', 'drt', 'release', system,
arch='x64', checked=True)
bot.RunTest('dartdevc', info, TARGETS, flags=FLAGS)