diff --git a/test/runner/lib/cloud/__init__.py b/test/runner/lib/cloud/__init__.py index 40fce32734d..232a70d428b 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))