Skip to content

Commit

Permalink
Add more snapshot tests
Browse files Browse the repository at this point in the history
Test that crashes in #289
Signed-off-by: Andrew Innes <[email protected]>
Co-Authored-By: Axel Gembe <[email protected]>
  • Loading branch information
andrewc12 authored and lundman committed Dec 11, 2023
1 parent 85c2091 commit 4cc1248
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions contrib/windows/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,17 @@ def log_dl(when):
run_cmd(ctx.ZPOOL, ["export", "-a"])
pool.destroy = False # already exported

# #######################################################################
# preTest("snapshot hang")
# with zpool_create(ctx, "testsn02", paths_to_unc(bf[:1])) as pool:
# log_dl("after testsn02 pool create")

# allocate_file(pool.mount_path / "test01.file", 1 * Size.KIB)
# 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"])
# pool.destroy = False # already exported
#######################################################################
preTest("snapshot hang")
with zpool_create(ctx, "testsn02", paths_to_unc(bf[:1])) as pool:
log_dl("after testsn02 pool create")

allocate_file(pool.mount_path / "test01.file", 1 * Size.KIB)
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"])
pool.destroy = False # already exported

#######################################################################
preTest("regex for key file")
Expand Down

0 comments on commit 4cc1248

Please sign in to comment.