From: Jonathan Toppins <jtoppins(a)redhat.com>
redhat: make RHTEST stricter
The test would originally match on any `-n` that existed in the
MAKEFLAGS variable. This is not correct.
Signed-off-by: Jonathan Toppins <jtoppins(a)redhat.com>
diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -19,7 +19,7 @@ SPECRELEASED_KERNEL=$(RELEASED_KERNEL)
SPECINCLUDE_FEDORA_FILES=$(INCLUDE_FEDORA_FILES)
SPECINCLUDE_RHEL_FILES=$(INCLUDE_RHEL_FILES)
-ifneq (,$(findstring n,$(MAKEFLAGS)))
+ifneq (,$(findstring n,$(filter-out --%,$(MAKEFLAGS))))
# Do not set RHTEST on the command line. Use the make command built-in options
# -n, --just-print, --dry-run, --recon on the command line.
RHTEST=1
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2144