Skip to content

Commit

Permalink
tests/lib/tools/tests.invariant: ignore session for user ubuntu
Browse files Browse the repository at this point in the history
On qemu backend, user "ubuntu" is used to call sudo. So while
this script is called, user "ubuntu" is logged in.
  • Loading branch information
valentindavid authored and Meulengracht committed Feb 23, 2024
1 parent 9d9f2be commit 4e6e3bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/lib/tools/tests.invariant
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e6e3bd

Please sign in to comment.