@@ -53,6 +53,10 @@ NFSTEST_KERNEL_CI_LOOP := scripts/workflows/nfstest/run_kernel_ci.sh
NFSTEST_KERNEL_CI_LOOP_KOTD := scripts/workflows/nfstest/run_kernel_ci_kotd.sh
endif # CONFIG_KERNEL_CI
+ifndef LAST_KERNEL
+LAST_KERNEL := $(shell cat workflows/nfstest/results/last-kernel.txt 2>/dev/null)
+endif
+
nfstest:
$(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \
-f 30 -i hosts playbooks/nfstest.yml \
@@ -88,6 +92,19 @@ nfstest-dev-reset:
--tags vars,reset \
--extra-vars=@./extra_vars.yaml
+nfstest-show-results:
+ifdef LAST_KERNEL
+ifeq ($(LAST_KERNEL), $(shell cat workflows/nfstest/results/last-kernel.txt 2>/dev/null))
+ @find workflows/nfstest/results/$(LAST_KERNEL) -type f $(PATTERN) -newer workflows/nfstest/results/last-run \
+ | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;'
+else
+ @find workflows/nfstest/results/$(LAST_KERNEL) -type f $(PATTERN) \
+ | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;'
+endif
+else
+ @echo "No results."
+endif
+
nfstest-help-menu:
@echo "nfstest options:"
@echo "nfstest - Git clone nfstest and install it"
Under the hood, it more or less just does 'find ... | xargs cat'. It shows the text results files for the most recent kernel run. You can show the results for a different kernel by overriding the LAST_KERNEL variable, e.g. $ LAST_KERNEL=6.13.4-300.fc41.x86_64 make nfstest-show-results Note that since the nfstest log files have a date and timestamp in the filename, it's possible to accumulate logs from multiple test runs. If you're showing the results from the most recent kernel, then we'll only show the logs from the most recent run (i.e. logs that are newer than the timestamp of the last-run directory). But if you're showing the results from an older kernel, then we'll show all the logs in that directory (but you can change that by overriding the PATTERN variable). Signed-off-by: Scott Mayhew <smayhew@redhat.com> --- workflows/nfstest/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)