From: Rob Browning Date: Sun, 3 Jun 2012 17:18:18 +0000 (-0500) Subject: Unmount and remove testfs instances correctly during make clean. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f8cd36ba70b68ffb67ed4ad79b7e6f9d71d7100c;p=packages%2Fb%2Fbup.git Unmount and remove testfs instances correctly during make clean. Signed-off-by: Rob Browning Reviewed-by: Zoran Zaric --- diff --git a/Makefile b/Makefile index d70ed63..99248cb 100644 --- a/Makefile +++ b/Makefile @@ -156,6 +156,8 @@ clean: Documentation/clean bup bup-* cmd/bup-* lib/bup/_version.py randomgen memtest \ out[12] out2[tc] tags[12] tags2[tc] \ testfs.img lib/bup/t/testfs.img - rm -rf *.tmp t/*.tmp lib/*/*/*.tmp build lib/bup/build - if test -e testfs; then rmdir testfs; fi - if test -e lib/bup/t/testfs; then rmdir lib/bup/t/testfs; fi + if test -e bupmeta.tmp/testfs; \ + then umount bupmeta.tmp/testfs || true; fi + if test -e lib/bup/t/testfs; \ + then umount lib/bup/t/testfs || true; fi + rm -rf *.tmp t/*.tmp lib/*/*/*.tmp build lib/bup/build lib/bup/t/testfs