diff options
Diffstat (limited to 'gnu/tests/base.scm')
-rw-r--r-- | gnu/tests/base.scm | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/tests/base.scm b/gnu/tests/base.scm index 086d2a133f..e5f9b87b1d 100644 --- a/gnu/tests/base.scm +++ b/gnu/tests/base.scm @@ -55,7 +55,10 @@ (define* (run-basic-test os command #:optional (name "basic") - #:key initialization root-password) + #:key + initialization + root-password + desktop?) "Return a derivation called NAME that tests basic features of the OS started using COMMAND, a gexp that evaluates to a list of strings. Compare some properties of running system to what's declared in OS, an <operating-system>. @@ -300,6 +303,12 @@ info --version") (test-equal "login on tty1" "root\n" (begin + ;; XXX: On desktop, GDM3 will switch to TTY7. If this happens + ;; after we switched to TTY1, we won't be able to login. Make + ;; sure to wait long enough before switching to TTY1. + (when #$desktop? + (sleep 30)) + (marionette-control "sendkey ctrl-alt-f1" marionette) ;; Wait for the 'term-tty1' service to be running (using ;; 'start-service' is the simplest and most reliable way to do @@ -871,7 +880,7 @@ non-ASCII names from /tmp.") (test-equal "avahi-browse" 0 (marionette-eval - '(system* "avahi-browse" "-avt") + '(system* "/run/current-system/profile/bin/avahi-browse" "-avt") marionette)) (test-assert "getaddrinfo .local" |