From 00982c693f31b64ecd299c9dc4ea267c54870469 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 7 Oct 2015 09:37:20 +0000 Subject: [PATCH] tests: limit search in sub-directories of /dev When cleaning up devices, search in sub-directories of /dev/ is not necessary Signed-off-by: Ruoyu Signed-off-by: Vasiliy Tolstov --- tests/functional/common.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/common.rc b/tests/functional/common.rc index b44c27136..3e944601a 100644 --- a/tests/functional/common.rc +++ b/tests/functional/common.rc @@ -442,7 +442,7 @@ _cleanup_devices() rm -f $d.img done - for d in `find /dev/ -name "loop*"`; do + for d in `find /dev/ -maxdepth 1 -name "loop*"`; do losetup -d $d &> /dev/null done }