From bdd5949396994a928b9c057c8119aab0fd2c759a Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Wed, 10 Jun 2009 15:05:04 -0500 Subject: [PATCH] Skip dump _cleanup if filesystem is not xfs Many/most dump tests include common.dump before checking supported fs, and this means that even if the dump tests are skipped, the sleep & filesystem check in _cleanup gets run, which makes it take rather a long time to skip these tests for non-xfs filesystems. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig --- common.dump | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.dump b/common.dump index 94de07fc..db9a92e6 100644 --- a/common.dump +++ b/common.dump @@ -233,6 +233,12 @@ _wipe_fs() # _cleanup() { + # Some tests include this before checking _supported_fs xfs + # and the sleeps & checks here get annoying + if [ "$FSTYP" != "xfs" ]; then + return + fi + cd $here rm -f $tmp.* -- 2.39.5