Skip to content

Commit

Permalink
tests: Export specific pool in the snapshot tests
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
EchterAgo authored and andrewc12 committed Oct 19, 2023
1 parent ab40fc9 commit bc98214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/windows/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

#######################################################################
Expand All @@ -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

#######################################################################
Expand Down

0 comments on commit bc98214

Please sign in to comment.