Skip to contentSkip to conversation

fstests: ensure the fstests_prep_localhost tasks get executed

PATCH In review Scott Mayhew 2 participants 2 messages Oct 17, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fstests: ensure the fstests_prep_localhost tasks get executed

Currently they get skipped because localhost isn't included in ansible-playbook --limit arg. This results in subsequent errors when parsing fstests results if the junitxml and/or junitparser modules aren't already installed.

Fixes e00143f6 ("fstests: add support for testing NFS")
---
 workflows/fstests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
workflows/fstests/Makefile +1 -1
index 370be411..e6346084 100644
@@ -137,7 +137,7 @@ DYNAMIC_RUNTIME_VARS += , "fstests_start_after_test": "$(START_AFTER)"
 endif
 
 fstests:
-	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \
+	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l localhost,baseline,dev \
 		-f 30 -i hosts playbooks/fstests.yml --skip-tags run_tests,copy_results $(LIMIT_HOSTS)
 
 fstests-kdevops-setup: $(KDEVOPS_EXTRA_VARS)
Signature · 1 line
2.41.0
#1 lore raw
Quoted 16 lines · Scott Mayhew

Currently they get skipped because localhost isn't included in ansible-playbook --limit arg. This results in subsequent errors when parsing fstests results if the junitxml and/or junitparser modules aren't already installed.

Fixes e00143f6 ("fstests: add support for testing NFS")
---
 workflows/fstests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
workflows/fstests/Makefile +0 -0
index 370be411..e6346084 100644

workflows/fstests/Makefile DYNAMIC_RUNTIME_VARS += , "fstests_start_after_test": "$(START_AFTER)" · line 143

Quoted 8 lines
workflows/fstests/Makefile +1 -1
@@ -137,7 +137,7 @@ DYNAMIC_RUNTIME_VARS += , "fstests_start_after_test": "$(START_AFTER)"
 endif
 
 fstests:
-	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \
+	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l localhost,baseline,dev \
 		-f 30 -i hosts playbooks/fstests.yml --skip-tags run_tests,copy_results $(LIMIT_HOSTS)
 
 fstests-kdevops-setup: $(KDEVOPS_EXTRA_VARS)

LGTM. Merged into master.

Cheers,

Signature · 1 line
Jeff Layton <[email protected]>