[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: tests: openvswitch: Wait for 'openvswitch-configuration' to be up
From: |
guix-commits |
Subject: |
03/07: tests: openvswitch: Wait for 'openvswitch-configuration' to be up. |
Date: |
Thu, 11 May 2023 07:25:21 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit b2a65b4c8cfe06eb48e0db83a408dd84175e07dc
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu May 11 11:04:50 2023 +0200
tests: openvswitch: Wait for 'openvswitch-configuration' to be up.
Checking for "br0" should only be done once the
'openvswitch-configuration' service is up because it's the one that sets
it up.
* gnu/tests/networking.scm (run-openvswitch-test)["openvswitch-configuration
is running"]: New test.
---
gnu/tests/networking.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/tests/networking.scm b/gnu/tests/networking.scm
index 3f3f653b8a..a8358c6a55 100644
--- a/gnu/tests/networking.scm
+++ b/gnu/tests/networking.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2018 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
-;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2021, 2023 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -300,6 +300,14 @@ port 7, and a dict service on port 2628."
(test-runner-current (system-test-runner #$output))
(test-begin "openvswitch")
+ ;; Wait for our configuration to be active (it sets up br0).
+ (test-assert "openvswitch-configuration is running"
+ (marionette-eval
+ '(begin
+ (use-modules (gnu services herd))
+ (wait-for-service 'openvswitch-configuration))
+ marionette))
+
;; Make sure the bridge is created.
(test-assert "br0 exists"
(marionette-eval
- branch master updated (4c7b5207cb -> 3186a52e11), guix-commits, 2023/05/11
- 01/07: services: dicod, bitlbee: Pass 'make-inetd-constructor' a list of endpoints., guix-commits, 2023/05/11
- 05/07: services: elogind: Add elogind as a shepherd PAM requirement., guix-commits, 2023/05/11
- 02/07: services: syslog: Do not call 'umask' in PID 1., guix-commits, 2023/05/11
- 03/07: tests: openvswitch: Wait for 'openvswitch-configuration' to be up.,
guix-commits <=
- 04/07: system: pam: Let PAM extensions add shepherd requirements., guix-commits, 2023/05/11
- 07/07: download: Refer to the 'guile-gnutls' package and not 'gnutls'., guix-commits, 2023/05/11
- 06/07: gnu: guile-gnutls: Fix cross-compilation., guix-commits, 2023/05/11