aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/python_utils
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2017-12-11 16:56:44 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2017-12-11 16:56:44 -0800
commit0cd6cfefa0a21ccf8dc28d623c03f3425e9ed72b (patch)
tree2e87bc7e8db658692b79177d1e3d7c09f2c63773 /tools/run_tests/python_utils
parent05687c3da9848ab79f08417793965de9bbbb52b0 (diff)
yapf tools/run_tests/sanity
Diffstat (limited to 'tools/run_tests/python_utils')
-rwxr-xr-xtools/run_tests/python_utils/jobset.py7
-rwxr-xr-xtools/run_tests/python_utils/port_server.py11
2 files changed, 9 insertions, 9 deletions
diff --git a/tools/run_tests/python_utils/jobset.py b/tools/run_tests/python_utils/jobset.py
index 424b4404a8..454d09bf0d 100755
--- a/tools/run_tests/python_utils/jobset.py
+++ b/tools/run_tests/python_utils/jobset.py
@@ -209,10 +209,9 @@ class JobSpec(object):
self.cmdline)
def __str__(self):
- return '%s: %s %s' % (self.shortname,
- ' '.join('%s=%s' % kv
- for kv in self.environ.items()),
- ' '.join(self.cmdline))
+ return '%s: %s %s' % (self.shortname, ' '.join(
+ '%s=%s' % kv
+ for kv in self.environ.items()), ' '.join(self.cmdline))
class JobResult(object):
diff --git a/tools/run_tests/python_utils/port_server.py b/tools/run_tests/python_utils/port_server.py
index 15f55f46dd..83e09c09d0 100755
--- a/tools/run_tests/python_utils/port_server.py
+++ b/tools/run_tests/python_utils/port_server.py
@@ -185,11 +185,12 @@ class Handler(BaseHTTPRequestHandler):
self.end_headers()
mu.acquire()
now = time.time()
- out = yaml.dump(
- {
- 'pool': pool,
- 'in_use': dict((k, now - v) for k, v in in_use.items())
- })
+ out = yaml.dump({
+ 'pool':
+ pool,
+ 'in_use':
+ dict((k, now - v) for k, v in in_use.items())
+ })
mu.release()
self.wfile.write(out)
elif self.path == '/quitquitquit':