-
Notifications
You must be signed in to change notification settings - Fork 19
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
tests: Clean up the existing tests.py #286
tests: Clean up the existing tests.py #286
Conversation
Draft because I still need to make the |
ZFS used to not reuse drive letters. So the test was meant to try to repeatedly create and destroy pools one after the other so that if it ran out of drive letters it would fail. It looks like you might be trying to assign drive letters yourself? From my brief glances. |
Yes, |
7f02e78
to
64ac0dd
Compare
I rebased this on top of #288 so maybe this finally passes now? |
64ac0dd
to
6b2bb21
Compare
Added another commit that removes |
I only re-enabled that test because pytest 5 was crashing I will straight up disable it after pytest5 passes So you don't need to bother fixing it |
bb2f4b9
to
6b2bb21
Compare
@andrewc12 ok, removed. |
6b2bb21
to
e2c03b2
Compare
e2c03b2
to
b673ca0
Compare
Note that I still need to fix the drive letter test so it doesn't explicitly set a drive letter. I want to be able to detect what drive letter / mountpoint the newly created pool was assigned in |
9b80b7c
to
7b4d2ca
Compare
I just got this failure, not sure what happened:
I think the pool was actually mounted on a different drive letter than the test expected. But the drive letter is fixed isn't it? Maybe the previous unmount did not finish yet and the drive letter D was still in use? What happens if a driveletter is specified but unavailable? |
Maybe we should also have a test to see if the drive letter is available again after unmount. |
We should also probably test if the pool is actually mounted where we expect it on each test. |
c7fd1bd
to
9c28d51
Compare
51b2889
to
ab30010
Compare
I added the checks in |
This cleans up the code of `tests.py` and makes it use the new functions from `utils.py`. This also makes the test sleep much less, which is only still required before destroying the pool due to openzfsonwindows#282 Signed-off-by: Axel Gembe <[email protected]>
ab30010
to
b44f161
Compare
Yeah these are both good ideas |
5fcb34f
into
openzfsonwindows:zfs-Windows-2.2.0-release
FYI, I let this test loop for the last two days and only encountered the drive letter thing once. I still intend to fix it. |
This cleans up the code of
tests.py
and makes it use the new functions fromutils.py
. This also makes the test sleep much less,which is only still required before destroying the pool due to #282