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

Update selftests #57

Merged
merged 5 commits into from
Jan 22, 2024
Merged

Conversation

spuiuk
Copy link
Collaborator

@spuiuk spuiuk commented Jan 17, 2024

The selftest files for smbtorture tests were out of date and needed updating.

We also use this opportunity to exclude the testcases/smbtorture/selftest(and a few more directories which are not part of the repo) from various checks. This means we no longer have to first copy the files from the samba sources and then update them to work with the static checkers. This is far easier to maintain.

@anoopcs9
Copy link
Collaborator

I figured that flapping.cephfs is missing another set of subtests(smb2.session.*).

tox.ini Outdated Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
@anoopcs9
Copy link
Collaborator

@spuiuk one last typo in commit message smbtorture: update selfhelp files.

Otherwise lgtm.

Copy link
Collaborator

@anoopcs9 anoopcs9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks.

I use a .venv directory within the repo and flake8 ends up checking the
python modules within that directory. I create a section in tox.ini to
exclude certain directories from flake8 checks.

Signed-off-by: Sachin Prabhu <[email protected]>
Exclude files in /testcases/smbtorture/selftest/ directory from tests.

Signed-off-by: Sachin Prabhu <[email protected]>
This includes a new subdirectory expectedfail.d which includes all tests
expected to always fail.

Head of samba repo when this copy was made
0caaa2d1723 (vfs: Remove shadow_copy2_get_real_filename_at(), 2024-01-11)

Signed-off-by: Sachin Prabhu <[email protected]>
Add the newly created directory expectedfail.d to the knownfails list
for smbtorture.

Signed-off-by: Sachin Prabhu <[email protected]>
@spuiuk spuiuk merged commit dcbcd34 into samba-in-kubernetes:main Jan 22, 2024
4 of 7 checks passed
@spuiuk spuiuk deleted the update_selftests branch January 22, 2024 11:44
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