| 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,
|
|
|