diff mbox

[1/1] btrfs-progs: tests/common: Display warning only after searching for btrfs kernel module

Message ID 20171027060024.GA3847@giis.co.in (mailing list archive)
State New, archived
Headers show

Commit Message

Lakshmipathi.G Oct. 27, 2017, 6 a.m. UTC
Signed-off-by: Lakshmipathi.G <lakshmipathi.g@giis.co.in>
---
 tests/common | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Comments

David Sterba Oct. 27, 2017, 2:41 p.m. UTC | #1
On Fri, Oct 27, 2017 at 11:30:24AM +0530, Lakshmipathi.G wrote:
> Signed-off-by: Lakshmipathi.G <lakshmipathi.g@giis.co.in>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tests/common b/tests/common
index eb525a4..773b1e5 100644
--- a/tests/common
+++ b/tests/common
@@ -428,8 +428,12 @@  run_check_umount_test_dev()
 check_kernel_support()
 {
 	if ! grep -iq 'btrfs' /proc/filesystems; then
-		echo "WARNING: btrfs filesystem not listed in /proc/filesystems, some tests might fail"
-		return 1
+		run_check $SUDO_HELPER modprobe btrfs
+			if ! grep -iq 'btrfs' /proc/filesystems; then
+				echo "WARNING: btrfs filesystem not listed in \
+				 /proc/filesystems, some tests might fail"
+				return 1
+			fi
 	fi
 	return 0
 }