From ba90263c2204bd36dcf31a8387cde11f368eac87 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 23 Jul 2019 23:39:31 -0700 Subject: [PATCH] Fix ansible-test cloud testing for collections. --- test/runner/lib/cloud/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/runner/lib/cloud/__init__.py b/test/runner/lib/cloud/__init__.py index 40fce32734..232a70d428 100644 --- a/test/runner/lib/cloud/__init__.py +++ b/test/runner/lib/cloud/__init__.py @@ -23,6 +23,7 @@ from lib.util import ( load_plugins, ABC, to_bytes, + make_dirs, ) from lib.target import ( @@ -162,6 +163,8 @@ def cloud_init(args, targets): clouds=results, ) + make_dirs(os.path.dirname(results_path)) + with open(results_path, 'w') as results_fd: results_fd.write(json.dumps(data, sort_keys=True, indent=4))