From d523a28a152620a5cb31d685696718473ead199c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 27 Aug 2019 17:32:37 +0200 Subject: [PATCH] btrfs-progs: tests: cli/003: add resize checks with 'max' The 'max' keyword checks were missing. We care about correct parsing, not necessarily the exact result of the filesystem resize. Signed-off-by: David Sterba --- tests/cli-tests/003-fi-resize-args/test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/cli-tests/003-fi-resize-args/test.sh b/tests/cli-tests/003-fi-resize-args/test.sh index c9267035..2e03725b 100755 --- a/tests/cli-tests/003-fi-resize-args/test.sh +++ b/tests/cli-tests/003-fi-resize-args/test.sh @@ -49,6 +49,9 @@ for sep in '' '--'; do run_check $SUDO_HELPER "$TOP/btrfs" filesystem resize $sep 1:-128M "$TEST_MNT" run_check $SUDO_HELPER "$TOP/btrfs" filesystem resize $sep 1:512M "$TEST_MNT" run_check $SUDO_HELPER "$TOP/btrfs" filesystem resize $sep 1:+128M "$TEST_MNT" + run_check $SUDO_HELPER "$TOP/btrfs" filesystem resize $sep max "$TEST_MNT" + run_check $SUDO_HELPER "$TOP/btrfs" filesystem resize $sep -128M "$TEST_MNT" + run_check $SUDO_HELPER "$TOP/btrfs" filesystem resize $sep 1:max "$TEST_MNT" done run_check_umount_test_dev