OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Runs all the buildbot steps for ChromeDriver except for update/compile.""" | 6 """Runs all the buildbot steps for ChromeDriver except for update/compile.""" |
7 | 7 |
8 import bisect | 8 import bisect |
9 import csv | 9 import csv |
10 import datetime | 10 import datetime |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 print 'deleting sub-directory', file_path | 376 print 'deleting sub-directory', file_path |
377 shutil.rmtree(file_path, True) | 377 shutil.rmtree(file_path, True) |
378 if file_name.startswith('chromedriver_'): | 378 if file_name.startswith('chromedriver_'): |
379 print 'deleting file', file_path | 379 print 'deleting file', file_path |
380 os.remove(file_path) | 380 os.remove(file_path) |
381 | 381 |
382 | 382 |
383 def _WaitForLatestSnapshot(revision): | 383 def _WaitForLatestSnapshot(revision): |
384 util.MarkBuildStepStart('wait_for_snapshot') | 384 util.MarkBuildStepStart('wait_for_snapshot') |
385 while True: | 385 while True: |
386 download_site = archive.Site.BLINK_SNAPSHOT | 386 snapshot_revision = archive.GetLatestSnapshotVersion() |
387 if util.IsLinux() and platform.architecture()[0] == '32bit': | |
388 download_site = archive.Site.CHROMIUM_SNAPSHOT | |
389 snapshot_revision = archive.GetLatestRevision(download_site) | |
390 if int(snapshot_revision) >= int(revision): | 387 if int(snapshot_revision) >= int(revision): |
391 break | 388 break |
392 util.PrintAndFlush('Waiting for snapshot >= %s, found %s' % | 389 util.PrintAndFlush('Waiting for snapshot >= %s, found %s' % |
393 (revision, snapshot_revision)) | 390 (revision, snapshot_revision)) |
394 time.sleep(60) | 391 time.sleep(60) |
395 util.PrintAndFlush('Got snapshot revision %s' % snapshot_revision) | 392 util.PrintAndFlush('Got snapshot revision %s' % snapshot_revision) |
396 | 393 |
397 | 394 |
398 def _AddToolsToPath(platform_name): | 395 def _AddToolsToPath(platform_name): |
399 """Add some tools like Ant and Java to PATH for testing steps to use.""" | 396 """Add some tools like Ant and Java to PATH for testing steps to use.""" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 util.MarkBuildStepStart('run_all_tests.py') | 481 util.MarkBuildStepStart('run_all_tests.py') |
485 util.MarkBuildStepError() | 482 util.MarkBuildStepError() |
486 | 483 |
487 # Add a "cleanup" step so that errors from runtest.py or bb_device_steps.py | 484 # Add a "cleanup" step so that errors from runtest.py or bb_device_steps.py |
488 # (which invoke this script) are kept in thier own build step. | 485 # (which invoke this script) are kept in thier own build step. |
489 util.MarkBuildStepStart('cleanup') | 486 util.MarkBuildStepStart('cleanup') |
490 | 487 |
491 | 488 |
492 if __name__ == '__main__': | 489 if __name__ == '__main__': |
493 main() | 490 main() |
OLD | NEW |