Skip to content

test_mount_unmount_zfs_file_system() is Flaky #383

@pem70

Description

@pem70

Describe the bug

The test_mount_unmount_zfs_file_system() integration test does not perform teardown actions if an assertion fails. The unmount and delete calls are placed at the very end of the test method, making them unreachable code if any prior assertion (like checking the file list) fails.

Expected and actual results
Expected: The test should automatically unmount and delete the ZFS file system regardless of whether the test passes or fails, ensuring a clean environment for the next run.

Actual: When the test fails mid-execution, the ZFS file system remains mounted on the host, preventing further run of test_mount_unmount_zfs_file_system() to pass

Describe your environment

Additional context

I have a PR ready for this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions