]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/config: Correctly ignore {TEST|SCRATCH}_DEV for tmpfs
authorAndré Almeida <andrealmeid@igalia.com>
Wed, 21 Aug 2024 15:57:46 +0000 (12:57 -0300)
committerZorro Lang <zlang@kernel.org>
Wed, 21 Aug 2024 18:55:22 +0000 (02:55 +0800)
As per commit 264e5358e2c2 ("tmpfs: don't require {TEST|SCRATCH}_DEV"),
tmpfs doesn't need TEST or SCRATCH devices due to being a RAM-based
filesystem.

Fix the check by comparing the content of the variable TEST_DEV, instead
of comparing with the string TEST_DEV. Same for SCRATCH_DEV.

Fixes: 264e5358e2c2 ("tmpfs: don't require {TEST|SCRATCH}_DEV")
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/config

index 22740c0af8d81e674e4590e479dafd26f1944df2..307f93fbce775e5959e308455abda9d1715ebc30 100644 (file)
@@ -829,10 +829,10 @@ get_next_config() {
        fi
 
        if [ "$FSTYP" == "tmpfs" ]; then
-               if [ -z "TEST_DEV" ]; then
+               if [ -z "$TEST_DEV" ]; then
                        export TEST_DEV=tmpfs_test
                fi
-               if [ -z "SCRATCH_DEV" ]; then
+               if [ -z "$SCRATCH_DEV" ]; then
                        export TEST_DEV=tmpfs_scratch
                fi
        fi