From e7ae602b1948363ebb34f16c8cbde35fa7a3a880 Mon Sep 17 00:00:00 2001 From: Simon McVittie <simon.mcvittie@collabora.co.uk> Date: Thu, 7 Jul 2016 14:35:09 +0000 Subject: [PATCH] sanity-check: print a process tree in terms of both ppid and cgroup This should help to debug situations where a process has been started the wrong way, for example in T1984. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3648 --- common/sanity-check | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/sanity-check b/common/sanity-check index 83bc192d..796c9b74 100755 --- a/common/sanity-check +++ b/common/sanity-check @@ -24,6 +24,11 @@ fail () { echo "TEST_RESULT:fail:$tag:$*" >&2 } +# This is just for information, so we ignore the exit status. Minimal +# images might legitimately not have these tools. +systemd-cgls -al --no-pager || : +pstree -lpu || : + getent passwd root || fail getent-passwd-root getent passwd user || fail getent-passwd-user -- GitLab