Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more snapshot tests #299

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/windows-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ jobs:
needs: [build_windows] #, build_wsl]
timeout-minutes: 30
runs-on: windows-latest
#if: ${{ false }}
if: ${{ false }}
steps:

- uses: actions/checkout@v3
Expand Down
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
Loading