Skip to contentSkip to conversation

multipath-tools: delete auto-generated tests/test-log.d file with make clean

PATCH In review Xose Vazquez Perez 2 participants 3 messages Oct 28, 2020 – Oct 30, 2020 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: delete auto-generated tests/test-log.d file with make clean

Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>
---
 tests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/Makefile +1 -1
index 502377f0..884c4611 100644
@@ -84,7 +84,7 @@ valgrind_clean:
 
 clean: test_clean valgrind_clean dep_clean
 	$(RM) $(TESTS:%=%-test) $(OBJS) *.o.wrap
-	$(RM) -rf lib
+	$(RM) -rf lib test-log.d
 
 .SECONDARY: $(OBJS)
 
Signature · 6 lines
2.28.0

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
#1 lore raw
Quoted 6 lines · Xose Vazquez Perez
Cc Martin Wilck <[email protected]>
Cc Benjamin Marzinski <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc DM-DEVEL ML <[email protected]>

---

Nack. The correct fix is attached.

From 0d0e291aed6e1693e26aa8d77f03a5c0f583f3f5 Mon Sep 17 00:00:00 2001
From: Martin Wilck <[email protected]>
Date: Fri, 30 Oct 2020 21:32:57 +0100
Subject: [PATCH] libmultipath tests: delete test-log.d during "make clean"

test-log.d was not cleaned out. Fix it.

---
 tests/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tests/Makefile +2 -1
index 3bacabd..d26b3ce 100644
@@ -14,6 +14,7 @@ LIBDEPS += -L$(multipathdir) -L$(mpathcmddir) -lmultipath -lmpathcmd -lcmocka
 
 TESTS := uevent parser util dmevents hwtable blacklist unaligned vpd pgpolicy \
 	 alias directio valid devt
+HELPERS := test-lib.o test-log.o
 
 .SILENT: $(TESTS:%=%.o)
 .PRECIOUS: $(TESTS:%=%-test)
@@ -74,7 +75,7 @@ lib/libchecktur.so:
 	@LD_LIBRARY_PATH=$(multipathdir):$(mpathcmddir) \
 		valgrind --leak-check=full --error-exitcode=128 ./$< >$@ 2>&1
 
-OBJS = $(TESTS:%=%.o) test-lib.o
+OBJS = $(TESTS:%=%.o) $(HELPERS)
 
 test_clean:
 	$(RM) $(TESTS:%=%.out) $(TESTS:%=%.vgr)
Signature · 1 line
2.29.0

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel