forked from canonical/lxd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fsmonitor: Test unix devices with both drivers (canonical#14111)
The `fsmonitor` package has two drivers, but only fanotify is tested for unix devices (see canonical#14110 (comment)). This is the default driver but it may not be available in all kernels/architectures. This PR adds an environment variable to force a specific driver to be used. The unix char and block device tests are then run with both drivers. The `inotify` package was encountering some unknown events. As it turned out, mapping these events to `fsmonitor` events broke the test suite, so I've added exceptions for them to reduce log verbosity.
- Loading branch information
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters