linux-uconsole/tools/testing/selftests/cgroup
Chris Down 001f93d95d cgroup: kselftest: relax fs_spec checks
commit b59b1baab7 upstream.

On my laptop most memcg kselftests were being skipped because it claimed
cgroup v2 hierarchy wasn't mounted, but this isn't correct.  Instead, it
seems current systemd HEAD mounts it with the name "cgroup2" instead of
"cgroup":

    % grep cgroup /proc/mounts
    cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0

I can't think of a reason to need to check fs_spec explicitly
since it's arbitrary, so we can just rely on fs_vfstype.

After these changes, `make TARGETS=cgroup kselftest` actually runs the
cgroup v2 tests in more cases.

Link: http://lkml.kernel.org/r/20190723210737.GA487@chrisdown.name
Signed-off-by: Chris Down <chris@chrisdown.name>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Roman Gushchin <guro@fb.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-06 19:06:55 +02:00
..
.gitignore cgroup: kselftests: add test_core to .gitignore 2018-09-06 12:24:47 -06:00
cgroup_util.c cgroup: kselftest: relax fs_spec checks 2019-08-06 19:06:55 +02:00
cgroup_util.h Add tests for memory.oom.group 2018-09-07 16:36:01 -06:00
Makefile Add cgroup core selftests 2018-08-09 09:12:45 -06:00
test_core.c kselftest/cgroup: fix incorrect test_core skip 2019-06-25 11:35:56 +08:00
test_memcontrol.c kselftest/cgroup: fix unexpected testing failure on test_memcontrol 2019-06-25 11:35:56 +08:00