[lvm-devel] [PATCH v1 3/4] tests: Fix test image issue
Leo Yan
leo.yan at linaro.org
Thu Jun 25 09:15:18 UTC 2020
If the global lock's test image gl_test.img is placed under the folder
@TESTDIR, after execute the script aa-lvmlockd-sanlock-prepare.sh, the
folder @TESTDIR is a temporary folder so it will be removed after
running and thus gl_test.img will not be kept anymore. So gl_test.img
cannot be used by any sequential test cases.
This patch changes to place gl_test.img in folder '/tmp' so it can be
used by all test cases.
Signed-off-by: Leo Yan <leo.yan at linaro.org>
---
test/shell/aa-lvmlockd-sanlock-prepare.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/shell/aa-lvmlockd-sanlock-prepare.sh b/test/shell/aa-lvmlockd-sanlock-prepare.sh
index 931055a22..8a8c4a74b 100644
--- a/test/shell/aa-lvmlockd-sanlock-prepare.sh
+++ b/test/shell/aa-lvmlockd-sanlock-prepare.sh
@@ -28,7 +28,7 @@ test_description='Set up things to run tests with sanlock'
# to remove this VG and device.
GL_DEV="/dev/mapper/GL_DEV"
-GL_FILE="$PWD/gl_file.img"
+GL_FILE="/tmp/gl_file.img"
dmsetup remove GL_DEV || true
rm -f "$GL_FILE"
dd if=/dev/zero of="$GL_FILE" bs=$((1024*1024)) count=1024 2> /dev/null
--
2.17.1
More information about the lvm-devel
mailing list