Skip to content
Snippets Groups Projects
Commit 06564715 authored by Adriaan de Groot's avatar Adriaan de Groot
Browse files

[displaymanager] Skip greetd test if there's no toml

toml is needed for greetd, but that shouldn't stop the tests
from running.
parent 6558cd51
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,14 @@ try: ...@@ -17,6 +17,14 @@ try:
except FileNotFoundError as e: except FileNotFoundError as e:
pass pass
try:
import toml
except ImportError:
# This is a failure of the test-environment.
import sys
print("Can't find module toml.", file=sys.stderr)
sys.exit(0)
# Specific DM test # Specific DM test
d = main.DMgreetd("/tmp") d = main.DMgreetd("/tmp")
d.set_autologin("d", True, default_desktop_environment) d.set_autologin("d", True, default_desktop_environment)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment