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

Unified Diff: testing/chromoting/browser_tests_launcher.py

Issue 1128733002: Update from https://crrev.com/328418 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « testing/chromoting/browser_test_commands_linux.txt ('k') | testing/commit_queue/config.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/chromoting/browser_tests_launcher.py
diff --git a/testing/chromoting/browser_tests_launcher.py b/testing/chromoting/browser_tests_launcher.py
index 2fceb7c658ba1ddf0f21701818922888ca3a8206..1c9652fb513c5c6b576aa214994a50c283a11ac0 100644
--- a/testing/chromoting/browser_tests_launcher.py
+++ b/testing/chromoting/browser_tests_launcher.py
@@ -13,6 +13,8 @@ import shutil
import socket
import subprocess
+import psutil
+
BROWSER_TEST_ID = 'browser_tests'
PROD_DIR_ID = '#PROD_DIR#'
HOST_HASH_VALUE = hashlib.md5(socket.gethostname()).hexdigest()
@@ -162,6 +164,15 @@ def SetupUserProfileDir(me2me_manifest_file, it2me_manifest_file,
shutil.copyfile(manifest_file_src, manifest_file_dest)
+def PrintRunningProcesses():
+ processes = psutil.get_process_list()
+ processes = sorted(processes, key=lambda process: process.name)
+
+ print 'List of running processes:\n'
+ for process in processes:
+ print process.name
+
+
def main(args):
InitialiseTestMachineForLinux(args.cfg_file)
@@ -182,6 +193,9 @@ def main(args):
# Host restart failed. Don't run any more tests.
raise Exception('Host restart failed.')
+ # Print list of currently running processes.
+ PrintRunningProcesses()
+
# All tests completed. Include host-logs in the test results.
host_log_contents = ''
# There should be only 1 log file, as we delete logs on test completion.
« no previous file with comments | « testing/chromoting/browser_test_commands_linux.txt ('k') | testing/commit_queue/config.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698