Chromium Code Reviews| Index: tools/bots/ddc_tests.py |
| diff --git a/tools/bots/ddc_tests.py b/tools/bots/ddc_tests.py |
| index 73f8f4a6f852198a12863069022b01bd472c6f5a..6799a5bd6806c299d4a4faf6899af42735d27f5f 100644 |
| --- a/tools/bots/ddc_tests.py |
| +++ b/tools/bots/ddc_tests.py |
| @@ -21,6 +21,12 @@ BUILD_OS = utils.GuessOS() |
| CHANNEL = bot_utils.GetChannelFromName(bot_name) |
| if __name__ == '__main__': |
| - print "This step should run dartdevc tests" |
| - print "Current directory when running on a bot should be" |
| - print "/b/build/slave/[builder name]/build/sdk" |
| + with utils.ChangedWorkingDirectory('pkg/dev_compiler'): |
| + with bot.BuildStep('npm install'): |
| + bot.RunProcess(['npm', 'install']) |
| + |
| + with bot.BuildStep('Compile tests and run unit tests'): |
| + bot.RunProcess(['dart', 'test/all_tests.dart']) |
|
Bill Hesse
2016/11/10 18:25:45
You need to say which dart executable you want to
|
| + |
| + with bot.BuildStep('Execute compiled tests'): |
| + bot.RunProcess(['npm', 'test']) |