Skip to content

Commit 39f7968

Browse files
committed
Print out the directory structure of the runner's SCT checkout to see
why it can't find tests.
1 parent e9d8492 commit 39f7968

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

etc/kayobe/ansible/stackhpc-cloud-tests.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
suffix: sct-repo
2626
register: repo_tmpdir
2727

28-
- debug: var=repo_tmpdir
29-
3028
- name: Create a temporary directory for results
3129
ansible.builtin.tempfile:
3230
state: directory
@@ -74,7 +72,22 @@
7472
/usr/bin/pwd
7573
register: debug_working_dir
7674

77-
- debug: var=debug_working_dir
75+
# REMOVE!!
76+
# Why does the runner fail to find the tests???
77+
- name: Capture contents of the SCT repo
78+
ansible.builtin.find:
79+
path: "{{ repo_tmpdir.path }}"
80+
file_type: "directory"
81+
recurse: true
82+
excludes: "{{ repo_tmpdir.path }}/.git"
83+
register: contents
84+
- name: Print the contents of the SCT repo
85+
debug:
86+
msg: "{{ item.path }}"
87+
with_items:
88+
- "{{ contents.files }}"
89+
loop_control:
90+
label: "{{ item.path }}"
7891

7992
# Monitoring tests should run once, executed on the host in the
8093
# tempest_runner group.

0 commit comments

Comments
 (0)