[CRIU] [PATCH] tests: remember to clean everything on make clean

Tycho Andersen tycho.andersen at canonical.com
Tue Feb 16 09:46:35 PST 2016


If we forget to clean some of this stuff, we can get into strange states
where zdtm.py thinks it has constructed the root, but really hasn't, and
can't construct the root because it partially exists.

v2: kill all the extra debugging crap from v1

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 test/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/Makefile b/test/Makefile
index 059ae38..a0a22b0 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -52,6 +52,10 @@ clean_root:
 	$(Q) $(RM) -r ./etc
 	$(Q) $(RM) -r ./dev
 	$(Q) $(RM) -r ./bin
+	$(Q) $(RM) -r ./sbin
+	$(Q) $(RM) -r ./proc
+	$(Q) $(RM) -r ./usr
+	$(Q) $(RM) -r ./.constructed
 
 clean: clean_root
 	$(RM) zdtm_ct zdtm-tst-list
-- 
2.6.4



More information about the CRIU mailing list