Commit 3de64b6
committed
selftests/landlock: Add supports_filesystem() helper
Replace supports_overlayfs() with supports_filesystem() to be able to
check several filesystems. This will be useful in a following commit.
Only check for overlay filesystem once in the setup step, and then rely
on self->skip_test.
Cc: Guenter Roeck <groeck@chromium.org>
Cc: Jeff Xu <jeffxu@google.com>
Link: https://lore.kernel.org/r/20230612191430.339153-4-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>1 parent 592efeb commit 3de64b6
1 file changed
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
122 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
123 | 130 | | |
124 | 131 | | |
125 | 132 | | |
| |||
4044 | 4051 | | |
4045 | 4052 | | |
4046 | 4053 | | |
4047 | | - | |
4048 | | - | |
4049 | | - | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
4050 | 4058 | | |
4051 | 4059 | | |
4052 | 4060 | | |
4053 | | - | |
4054 | | - | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
4055 | 4065 | | |
4056 | 4066 | | |
4057 | 4067 | | |
| |||
4089 | 4099 | | |
4090 | 4100 | | |
4091 | 4101 | | |
4092 | | - | |
4093 | | - | |
| 4102 | + | |
| 4103 | + | |
4094 | 4104 | | |
4095 | 4105 | | |
4096 | 4106 | | |
| |||
4123 | 4133 | | |
4124 | 4134 | | |
4125 | 4135 | | |
4126 | | - | |
4127 | | - | |
| 4136 | + | |
| 4137 | + | |
4128 | 4138 | | |
4129 | 4139 | | |
4130 | 4140 | | |
| |||
4289 | 4299 | | |
4290 | 4300 | | |
4291 | 4301 | | |
4292 | | - | |
4293 | | - | |
| 4302 | + | |
| 4303 | + | |
4294 | 4304 | | |
4295 | 4305 | | |
4296 | 4306 | | |
| |||
0 commit comments