summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/wait_for
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2023-11-16 21:20:52 +0100
committerGitHub <noreply@github.com>2023-11-16 21:20:52 +0100
commit8b102dca4a236efcf645e8c17721da549cda61c5 (patch)
treefe145d48030f1ec140c1f7a7192c35805aeddde6 /test/integration/targets/wait_for
parentdisplaly. log, handle when caplevel is already taken care of (#82227) (diff)
downloadansible-8b102dca4a236efcf645e8c17721da549cda61c5.tar.xz
ansible-8b102dca4a236efcf645e8c17721da549cda61c5.zip
wait_for, fallback to read for non mmapable files (#82064)
* also handle oserror, added debug jic
Diffstat (limited to 'test/integration/targets/wait_for')
-rw-r--r--test/integration/targets/wait_for/tasks/main.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/integration/targets/wait_for/tasks/main.yml b/test/integration/targets/wait_for/tasks/main.yml
index f71ddbda6b..8fadbf38a0 100644
--- a/test/integration/targets/wait_for/tasks/main.yml
+++ b/test/integration/targets/wait_for/tasks/main.yml
@@ -91,7 +91,7 @@
wait_for:
path: "{{remote_tmp_dir}}/wait_for_keyword"
search_regex: completed (?P<foo>\w+) ([0-9]+)
- timeout: 5
+ timeout: 25
register: waitfor
- name: verify test wait for keyword in file with match groups
@@ -114,6 +114,13 @@
path: "{{remote_tmp_dir}}/utf16.txt"
search_regex: completed
+- name: test non mmapable file
+ wait_for:
+ path: "/sys/class/net/lo/carrier"
+ search_regex: "1"
+ timeout: 30
+ when: ansible_os_family not in ['FreeBSD', 'Darwin']
+
- name: test wait for port timeout
wait_for:
port: 12121