From bc98214460805e0f69e2a492d73de7fdfa7e03d7 Mon Sep 17 00:00:00 2001 From: Axel Gembe Date: Wed, 18 Oct 2023 14:38:46 +0700 Subject: [PATCH] tests: Export specific pool in the snapshot tests The test currently exports all pools which makes it impossible to run other tests in parallel on a different drive letter. Instead we should only export the pool created by the test. Signed-off-by: Axel Gembe --- contrib/windows/tests/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/windows/tests/tests.py b/contrib/windows/tests/tests.py index 5c0155c0feb0..1ac359a43a1b 100644 --- a/contrib/windows/tests/tests.py +++ b/contrib/windows/tests/tests.py @@ -100,7 +100,7 @@ def log_dl(when): allocate_file(pool.mount_path / "test01.file", 1 * Size.KIB) run_cmd(ctx.ZFS, ["snapshot", "testsn01@friday"]) allocate_file(pool.mount_path / "test02.file", 1 * Size.KIB) - run_cmd(ctx.ZPOOL, ["export", "-a"]) + run_cmd(ctx.ZPOOL, ["export", "testsn01"]) pool.destroy = False # already exported ####################################################################### @@ -112,7 +112,7 @@ def log_dl(when): run_cmd(ctx.ZFS, ["snapshot", "testsn02@friday"]) allocate_file(pool.mount_path / "test02.file", 1 * Size.KIB) run_cmd(ctx.ZFS, ["mount", "testsn02@friday"]) - run_cmd(ctx.ZPOOL, ["export", "-a"]) + run_cmd(ctx.ZPOOL, ["export", "testsn02"]) pool.destroy = False # already exported #######################################################################