From dfc62589f6dfd5282b21158bcd85078428c06c96 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Wed, 4 Oct 2023 10:57:39 -0400 Subject: [PATCH] win_fetch - improve test time by not scanning Win dir (#81884) --- test/integration/targets/win_fetch/tasks/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/win_fetch/tasks/main.yml b/test/integration/targets/win_fetch/tasks/main.yml index b0c6cad8be2..16a287618ee 100644 --- a/test/integration/targets/win_fetch/tasks/main.yml +++ b/test/integration/targets/win_fetch/tasks/main.yml @@ -176,8 +176,13 @@ - "fetch_missing_implicit.msg" - "fetch_missing_implicit is not changed" +- name: create empty temp directory + win_file: + path: '{{ remote_tmp_dir }}\fetch_tmp' + state: directory + - name: attempt to fetch a directory - fetch: src="C:\\Windows" dest={{ host_output_dir }} + fetch: src="{{ remote_tmp_dir }}\\fetch_tmp" dest={{ host_output_dir }} register: fetch_dir ignore_errors: true @@ -224,4 +229,3 @@ assert: that: - "fetch_wildcard_file_nofail is not failed" -