[displaymanager] Skip greetd test if there's no toml
toml is needed for greetd, but that shouldn't stop the tests from running.
This commit is contained in:
parent
6558cd5150
commit
065647154e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user