diff --git a/gnu/tests/version-control.scm b/gnu/tests/version-control.scm index fd3dba88ba..18c68a58f2 100644 --- a/gnu/tests/version-control.scm +++ b/gnu/tests/version-control.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017, 2018 Oleg Pykhalov -;;; Copyright © 2017, 2018, 2020, 2021 Ludovic Courtès +;;; Copyright © 2017-2018, 2020-2022 Ludovic Courtès ;;; Copyright © 2017, 2018 Clément Lassieur ;;; Copyright © 2018 Christopher Baines ;;; @@ -154,19 +154,11 @@ (define marionette ;; Wait for nginx to be up and running. (test-assert "nginx running" - (marionette-eval - '(begin - (use-modules (gnu services herd)) - (start-service 'nginx)) - marionette)) + (wait-for-file "/var/run/nginx/pid" marionette)) ;; Wait for fcgiwrap to be up and running. (test-assert "fcgiwrap running" - (marionette-eval - '(begin - (use-modules (gnu services herd)) - (start-service 'fcgiwrap)) - marionette)) + (wait-for-tcp-port 9000 marionette)) ;; Make sure the PID file is created. (test-assert "PID file" @@ -272,11 +264,7 @@ (define marionette ;; Wait for nginx to be up and running. (test-assert "nginx running" - (marionette-eval - '(begin - (use-modules (gnu services herd)) - (start-service 'nginx)) - marionette)) + (wait-for-file "/var/run/nginx/pid" marionette)) ;; Make sure Git test repository is created. (test-assert "Git test repository" @@ -486,17 +474,7 @@ (define marionette ;; Wait for nginx to be up and running. (test-assert "nginx running" - (marionette-eval - '(begin - (use-modules (gnu services herd)) - (start-service 'nginx)) - marionette)) - - ;; Make sure the PID file is created. - (test-assert "PID file" - (marionette-eval - '(file-exists? "/var/run/nginx/pid") - marionette)) + (wait-for-file "/var/run/nginx/pid" marionette)) ;; Make sure Git test repository is created. (test-assert "Git test repository"