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

Unified Diff: tests/swarm_get_results_smoke_test.py

Issue 22980008: Merge all swarm_*.py scripts into swarming.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/swarm_client
Patch Set: Rebase against r219402 Created 7 years, 4 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 | « swarming.py ('k') | tests/swarm_get_results_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/swarm_get_results_smoke_test.py
diff --git a/tests/swarm_get_results_smoke_test.py b/tests/swarm_get_results_smoke_test.py
deleted file mode 100755
index 3b5a7eb52f3bf4ca415138635c8b5bd0e99b34f1..0000000000000000000000000000000000000000
--- a/tests/swarm_get_results_smoke_test.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import logging
-import os
-import subprocess
-import sys
-import unittest
-
-BASE_DIR = os.path.dirname(os.path.abspath(__file__))
-
-
-class TestSwarm(unittest.TestCase):
- def test_example(self):
- # pylint: disable=W0101
- # A user should be able to trigger a swarm job and return results.
- cmd = [
- sys.executable,
- os.path.normpath(
- os.path.join(BASE_DIR, '..', 'example', 'run_example_swarm.py')),
- ]
- p = subprocess.Popen(
- cmd,
- stdin=subprocess.PIPE,
- stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT)
- out = p.communicate()[0]
- logging.debug(out)
- self.assertEqual(0, p.returncode, out)
-
-
-if __name__ == '__main__':
- logging.basicConfig(
- level=logging.DEBUG if '-v' in sys.argv else logging.ERROR)
- if '-v' in sys.argv:
- unittest.TestCase.maxDiff = None
- unittest.main()
« no previous file with comments | « swarming.py ('k') | tests/swarm_get_results_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698