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

Side by Side Diff: client/site_tests/desktopui_SyncIntegrationTests/desktopui_SyncIntegrationTests.py

Issue 3209004: Moved chrome autotests to chromium depot (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: updates Created 10 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import logging, os, utils
6 from autotest_lib.client.bin import test
7 from autotest_lib.client.common_lib import error, site_ui
8
9 class desktopui_SyncIntegrationTests(test.test):
10 version = 1
11
12 def setup(self):
13 self.job.setup_dep(['chrome_test'])
14 # create a empty srcdir to prevent the error that checks .version file
15 if not os.path.exists(self.srcdir):
16 os.mkdir(self.srcdir)
17
18
19 def run_once(self):
20 dep = 'chrome_test'
21 dep_dir = os.path.join(self.autodir, 'deps', dep)
22 self.job.install_pkg(dep, 'dep', dep_dir)
23
24 chrome_dir = '/opt/google/chrome'
25 test_binary_dir = '%s/test_src/out/Release' % dep_dir
26 password_file = '%s/sync_password.txt' % dep_dir
27
28 try:
29 setup_cmd = '%s/%s' % (test_binary_dir,
30 'setup_test_links.sh')
31 utils.system(setup_cmd)
32
33 cmd = '%s/sync_integration_tests --password-file-for-test=%s --test- terminate-timeout=300000' % (test_binary_dir, password_file)
34 cmd = site_ui.xcommand(cmd)
35 logging.info("Running %s" % cmd)
36 utils.system(cmd)
37 except error.CmdError, e:
38 logging.debug(e)
39 raise error.TestFail('sync_integration_tests failed.')
OLDNEW
« no previous file with comments | « client/site_tests/desktopui_SyncIntegrationTests/control ('k') | client/site_tests/desktopui_UITest/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698