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

Allow test with already-mounted smbshare on local dir #32

Closed
wants to merge 3 commits into from

Conversation

synarete
Copy link
Collaborator

@synarete synarete commented Oct 2, 2023

When running over Windows, we should not execute the cifs_mount/cifs_umount helper functions. Instead, allow running mount tests over already existing smbshare directory, which the user attached via PowerShell's net use command.

@synarete
Copy link
Collaborator Author

When running over Windows, we should not execute the cifs_mount/cifs_umount helper functions. Instead, allow running mount tests over already existing smbshare directory, which the user attached via PowerShell's net use command.

@Shwetha-Acharya Please note that this PR is in conflict with your PR#38. Please wait for review comments from @spuiuk and @anoopcs9 before you begin your rebase.

Shachar Sharon added 3 commits October 17, 2023 17:20
In cases where user may want to run (some) tests over existing smbshare,
allow passing explicit 'test_dir' via 'test-info.yml' configuration
file. It is up to the user to ensure that this value hold reference to
valid (and mounted) samba share.

May be used in Windows/PowerShell case where adding network device is
done from outside of sit-test-cases.

Signed-off-by: Shachar Sharon <ssharon@ibm.com>
Code cleanup: have single function for all sub-tests where already
having a test-directory over SMB share.

Signed-off-by: Shachar Sharon <ssharon@ibm.com>
Allow two modes of operation: if user provided explicit 'test_dir', use
it for I/O consistency tests (assuming it is a valid smb share);
otherwise, do the normal flow using cifs_mount/cifs_umount helper
functions.

Signed-off-by: Shachar Sharon <ssharon@ibm.com>
@spuiuk
Copy link
Collaborator

spuiuk commented Nov 14, 2023

commit 31b9e25
adds support for premounted shares using a different path.

Closing this PR since this support is no longer required.

@spuiuk spuiuk closed this Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants