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

Side by Side Diff: swarm_client/tests/swarming_smoke_test.py

Issue 69143004: Delete swarm_client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « swarm_client/tests/short_expression_finder_test.py ('k') | swarm_client/tests/swarming_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import logging
7 import os
8 import subprocess
9 import sys
10 import unittest
11
12 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
13
14 ISOLATE_SERVER = 'https://isolateserver.appspot.com/'
15 SWARMING_SERVER = 'https://chromium-swarm.appspot.com/'
16
17
18 class TestSwarm(unittest.TestCase):
19 def test_example(self):
20 # pylint: disable=W0101
21 # A user should be able to trigger a swarm job and return results.
22 cmd = [
23 sys.executable,
24 os.path.normpath(
25 os.path.join(BASE_DIR, '..', 'example', 'run_example_swarm.py')),
26 '--isolate-server', ISOLATE_SERVER,
27 '--swarming', SWARMING_SERVER,
28 ]
29 if '-v' in sys.argv:
30 cmd.append('--verbose')
31 p = subprocess.Popen(
32 cmd,
33 stdin=subprocess.PIPE,
34 stdout=subprocess.PIPE,
35 stderr=subprocess.STDOUT)
36 out = p.communicate()[0]
37 logging.debug(out)
38 self.assertEqual(0, p.returncode, out)
39
40
41 if __name__ == '__main__':
42 logging.basicConfig(
43 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR)
44 if '-v' in sys.argv:
45 unittest.TestCase.maxDiff = None
46 unittest.main()
OLDNEW
« no previous file with comments | « swarm_client/tests/short_expression_finder_test.py ('k') | swarm_client/tests/swarming_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698