about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJade Lovelace <software@lfcode.ca>2023-10-03 01:04:57 -0700
committerJade Lovelace <software@lfcode.ca>2024-01-19 00:11:34 -0800
commit174ffdcbc4f0512b26053ed18b53af1661d9cf27 (patch)
tree7ae2015c249a3cd49917b959e49428d68e199c76
parent9b29e5eb7efc7327f2ba5cb44a98df4196fb8ce3 (diff)
downloadnixlib-174ffdcbc4f0512b26053ed18b53af1661d9cf27.tar
nixlib-174ffdcbc4f0512b26053ed18b53af1661d9cf27.tar.gz
nixlib-174ffdcbc4f0512b26053ed18b53af1661d9cf27.tar.bz2
nixlib-174ffdcbc4f0512b26053ed18b53af1661d9cf27.tar.lz
nixlib-174ffdcbc4f0512b26053ed18b53af1661d9cf27.tar.xz
nixlib-174ffdcbc4f0512b26053ed18b53af1661d9cf27.tar.zst
nixlib-174ffdcbc4f0512b26053ed18b53af1661d9cf27.zip
nixos/tests: fix tayga under network-online dep fix
-rw-r--r--nixos/tests/tayga.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/tests/tayga.nix b/nixos/tests/tayga.nix
index 44974f6efea8..4aade67d74d0 100644
--- a/nixos/tests/tayga.nix
+++ b/nixos/tests/tayga.nix
@@ -206,6 +206,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
   testScript = ''
     # start client and server
     for machine in client, server:
+      machine.systemctl("start network-online.target")
       machine.wait_for_unit("network-online.target")
       machine.log(machine.execute("ip addr")[1])
       machine.log(machine.execute("ip route")[1])
@@ -214,6 +215,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
     # test systemd-networkd and nixos-scripts based router
     for router in router_systemd, router_nixos:
       router.start()
+      router.systemctl("start network-online.target")
       router.wait_for_unit("network-online.target")
       router.wait_for_unit("tayga.service")
       router.log(machine.execute("ip addr")[1])