From 4e6e3bdbeb5dbbe36c0fabd16c0f0512eaef2355 Mon Sep 17 00:00:00 2001 From: Valentin David Date: Thu, 22 Feb 2024 14:31:21 +0100 Subject: [PATCH] tests/lib/tools/tests.invariant: ignore session for user ubuntu On qemu backend, user "ubuntu" is used to call sudo. So while this script is called, user "ubuntu" is logged in. --- tests/lib/tools/tests.invariant | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/lib/tools/tests.invariant b/tests/lib/tools/tests.invariant index 13b97d15b0c..00fb368d731 100755 --- a/tests/lib/tools/tests.invariant +++ b/tests/lib/tools/tests.invariant @@ -104,6 +104,11 @@ check_stray_dbus_daemon() { if [ "$user" = "external" ]; then continue fi + # On qemu backend, sudo from user "ubuntu" is used. So the session + # for user "ubuntu" is expected to exist. + if [ "$user" = "ubuntu" ]; then + continue + fi # Report stray dbus-daemon. failed+=("pid:$pid user:$user cmdline:$cmdline") done