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

Unified Diff: client/run_isolated.py

Issue 1942403002: run_isolated: close storage (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/run_isolated.py
diff --git a/client/run_isolated.py b/client/run_isolated.py
index 8bccaaaf8a240b1a0df5b4bc967742eedc3d685a..0b343b28f6ae305d37581f101d43f15e5d263ce6 100755
--- a/client/run_isolated.py
+++ b/client/run_isolated.py
@@ -603,13 +603,14 @@ def main(args):
command = [] if options.isolated else args
if options.isolate_server:
storage = isolateserver.get_storage(
- options.isolate_server, options.namespace)
+ options.isolate_server, options.namespace)
# Hashing schemes used by |storage| and |cache| MUST match.
- assert storage.hash_algo == cache.hash_algo
- return run_tha_test(
- command, options.isolated, storage, cache, options.leak_temp_dir,
- options.json, options.root_dir, options.hard_timeout,
- options.grace_period, args)
+ with storage:
+ assert storage.hash_algo == cache.hash_algo
+ return run_tha_test(
+ command, options.isolated, storage, cache, options.leak_temp_dir,
+ options.json, options.root_dir, options.hard_timeout,
+ options.grace_period, args)
else:
return run_tha_test(
command, options.isolated, None, cache, options.leak_temp_dir,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698