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

Unified Diff: tests/run_test_cases/output.py

Issue 19917006: Move all googletest related scripts into googletest/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/swarm_client
Patch Set: Remove unnecessary pylint warning disable Created 7 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 | « tests/run_isolated_smoke_test.py ('k') | tests/run_test_cases_smoke_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/run_test_cases/output.py
diff --git a/tests/run_test_cases/output.py b/tests/run_test_cases/output.py
deleted file mode 100755
index 14ca2511aa1ea2696d9e9788a2603851259d565d..0000000000000000000000000000000000000000
--- a/tests/run_test_cases/output.py
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 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.
-
-"""Outputs on both stderr and stdout."""
-
-import re
-import sys
-import time
-
-
-def main():
- for command in sys.argv[1:]:
- if re.match(r'^[0-9\.]+$', command):
- time.sleep(float(command))
- continue
-
- if command.startswith('out_'):
- pipe = sys.stdout
- elif command.startswith('err_'):
- pipe = sys.stderr
- else:
- return 1
-
- command = command[4:]
- if command == 'print':
- pipe.write('printing')
- elif command == 'sleeping':
- pipe.write('Sleeping.\n')
- elif command == 'slept':
- pipe.write('Slept.\n')
- elif command == 'lf':
- pipe.write('\n')
- elif command == 'flush':
- pipe.flush()
- else:
- return 1
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « tests/run_isolated_smoke_test.py ('k') | tests/run_test_cases_smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698