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

Unified Diff: tools/bots/functional_testing.py

Issue 417043004: Run SWTBot tests along with EggPlant. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/functional_testing.py
diff --git a/tools/bots/functional_testing.py b/tools/bots/functional_testing.py
index 327281fe3035099e51fb9f287888a442f3c78816..9b06ba5a44c4d6769afb89018e631eaccfc6c2ee 100644
--- a/tools/bots/functional_testing.py
+++ b/tools/bots/functional_testing.py
@@ -9,8 +9,10 @@ Buildbot steps for functional testing master and slaves
"""
import os
+import os.path
import re
import shutil
+import subprocess
import sys
import bot
@@ -23,6 +25,9 @@ FT_MASTER = r'ft-master'
HOST_OS = utils.GuessOS()
+def IsWindows():
+ return HOST_OS == 'win32'
+
def SrcConfig(name, is_buildbot):
"""Returns info for the current buildbot based on the name of the builder.
@@ -48,6 +53,19 @@ def Run(args):
bot.RunProcess(args)
def FTSlave(config):
+
+ # Run SWTBot tests
+ if len(sys.argv) > 0:
+ scriptdir = os.path.dirname(sys.argv[0])
+ builddir = os.path.join(scriptdir, '..', '..', 'editor', 'build')
+ testScript = os.path.join(builddir, 'testswteditor.py')
+ cmd = [sys.executable, testScript]
+ try:
+ subprocess.call(cmd, shell=IsWindows())
+ except:
+ pass
+
+ # Prepare to run EggPlant tests
with bot.BuildStep('Fetching editor'):
revision = int(os.environ['BUILDBOT_GOT_REVISION'])
bot_name, _ = bot.GetBotName()
@@ -84,6 +102,7 @@ def FTMaster(config):
os.makedirs(builddir)
script_locations = os.path.join(bot_utils.DART_DIR, 'editor', 'ft')
Run(['/home/chrome-bot/func-test/bot-run', builddir, script_locations])
+ #TODO Copy builddir to shared storage somewhere.
def FTSteps(config):
if config.builder_tag == 'master':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698