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

Adapt tests to improve BSD support. #633

Merged
merged 2 commits into from
Feb 6, 2020

Conversation

evilham
Copy link
Contributor

@evilham evilham commented Feb 5, 2020

Preparation for #632.

The only doubt I have here is regarding: test_separate_consecutive_moves:
As far as the current KqueueEmitter is concerned, it looks like if we add a file from a different directory it is equivalent to that file being created and not renamed, as the test expects. Does this patch to the test make sense?

There was a false Linux|Windows dichotomy in some tests, so instead of
skipping certain tests on certain platforms, this now skips tests when
not on the expected platform.
E.g. InotifyFullEmitter tests shouldn't run on non-Linux and the
Windows-specific tests shouldn't run on non-Windows.

There was a false Linux|Windows dichotomy in some tests, so instead of
skipping certain tests on certain platforms, this now skips tests when
*not* on the expected platform.
E.g. InotifyFullEmitter tests shouldn't run on non-Linux and the
Windows-specific tests shouldn't run on non-Windows.
@evilham
Copy link
Contributor Author

evilham commented Feb 5, 2020

Ouch, it looks like indeed the test I had doubts in is being problematic :-D.
I think I'll wait on some input regarding what the intent of the test is, and how we can improve BSD support there.

Yay, CI!

@evilham evilham changed the title Adapt tests to improve BSD support. [WIP] Adapt tests to improve BSD support. Feb 5, 2020
@BoboTiG
Copy link
Collaborator

BoboTiG commented Feb 5, 2020

Thanks @evilham!

Perhaps should you submit the test change in another PR? And just using this one to properly skip tests based on OS types.

Also, could you add a line in the changelog + your GH name?

That way CI is happy and changes are conceptually more isolated.
@evilham
Copy link
Contributor Author

evilham commented Feb 6, 2020

There is an unrelated failure regarding chocolatey:

$ choco install python2

The command "eval git fetch origin +refs/pull/633/merge: " failed. Retrying, 2 of 3.

From https://github.com/gorakhargosh/watchdog

 * branch            refs/pull/633/merge -> FETCH_HEAD

Chocolatey v0.10.15

Installing the following packages:

python2

By installing you accept licenses for the packages.

python2 not installed. An error occurred during installation:

 Unable to connect to the remote server

@evilham evilham changed the title [WIP] Adapt tests to improve BSD support. Adapt tests to improve BSD support. Feb 6, 2020
@BoboTiG
Copy link
Collaborator

BoboTiG commented Feb 6, 2020

Yes, this is a random bug on the CI. I relaunched the job and it passes 🍾

Thanks for the patch @evilham 💪

@BoboTiG BoboTiG merged commit f1aa087 into gorakhargosh:master Feb 6, 2020
@evilham evilham mentioned this pull request Feb 6, 2020
@BoboTiG BoboTiG added the kqueue label Feb 6, 2020
CCP-Aporia pushed a commit to CCP-Aporia/watchdog that referenced this pull request Aug 13, 2020
* Adapt tests to improve BSD support.

There was a false Linux|Windows dichotomy in some tests, so instead of
skipping certain tests on certain platforms, this now skips tests when
*not* on the expected platform.
E.g. InotifyFullEmitter tests shouldn't run on non-Linux and the
Windows-specific tests shouldn't run on non-Windows.

* Revert change to `test_separate_consecutive_moves`.

That way CI is happy and changes are conceptually more isolated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants