OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 import os | 7 import os |
8 import os.path | 8 import os.path |
9 import shutil | 9 import shutil |
10 import sys | 10 import sys |
11 import subprocess | 11 import subprocess |
12 | 12 |
13 import bot | 13 SCRIPT_DIR = os.path.dirname(sys.argv[0]) |
14 import bot_utils | 14 DART_ROOT = os.path.realpath(os.path.join(SCRIPT_DIR, '..', '..')) |
15 | 15 |
16 utils = bot_utils.GetUtils() | 16 def main(argv): |
17 | 17 test_py = os.path.join(DART_ROOT, 'tools', 'test.py') |
18 BUILD_OS = utils.GuessOS() | 18 build_result = subprocess.call(['python', test_py] + argv[1:]) |
19 | 19 if build_result != 0: |
20 (bot_name, _) = bot.GetBotName() | 20 return build_result |
21 CHANNEL = bot_utils.GetChannelFromName(bot_name) | 21 return 0 |
22 | 22 |
23 if __name__ == '__main__': | 23 if __name__ == '__main__': |
24 print "This step should test the sdk that was built using gn" | 24 sys.exit(main(sys.argv)) |
25 print "Current directory when running on a bot should be" | |
26 print "/b/build/slave/[builder name]/build/sdk" | |
27 | |
OLD | NEW |