test: test_qemu_running_processes: ensure "none" UI boots correctly (!1911)

No special process needs to be running, SSH is good already :)
This commit is contained in:
Minecrell 2020-04-11 20:08:13 +02:00
parent 4c31a610eb
commit 181687a2d7
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -166,14 +166,21 @@ def is_running(args, programs, timeout=300, sleep_before_retry=1):
return False
def test_none(args, tmpdir, qemu):
qemu.run(args, tmpdir)
# Check that at least SSH works (no special process running)
assert is_running(args, [])
# self-test of is_running() - invalid-process should not be detected as running
assert is_running(args, ["invalid-process"], 1) is False
def test_xfce4(args, tmpdir, qemu):
qemu.run(args, tmpdir, "xfce4")
assert is_running(args, ["xfce4-session", "xfdesktop", "xfce4-panel",
"Thunar", "dbus-daemon", "xfwm4"])
# self-test of is_running()
assert is_running(args, ["invalid-process"], 1) is False
def test_plasma_mobile(args, tmpdir, qemu):
# NOTE: Once we have plasma mobile running properly without GL, we can check