From b8ffc572d27ec671366ef4937ed0f90b73638a42 Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Wed, 23 Nov 2022 18:53:04 +0100 Subject: [PATCH] nixos/patroni: only run tests on x86_64-linux etcd doesn't support other architectures and refuses to start --- nixos/tests/all-tests.nix | 2 +- nixos/tests/patroni.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 7b1006ba6015..1fa5b0b1c13d 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -480,7 +480,7 @@ in { pam-u2f = handleTest ./pam/pam-u2f.nix {}; pam-ussh = handleTest ./pam/pam-ussh.nix {}; pass-secret-service = handleTest ./pass-secret-service.nix {}; - patroni = handleTest ./patroni.nix {}; + patroni = handleTestOn ["x86_64-linux"] ./patroni.nix {}; pantalaimon = handleTest ./matrix/pantalaimon.nix {}; pantheon = handleTest ./pantheon.nix {}; paperless = handleTest ./paperless.nix {}; diff --git a/nixos/tests/patroni.nix b/nixos/tests/patroni.nix index f512fddcdbdd..1f15cd59677a 100644 --- a/nixos/tests/patroni.nix +++ b/nixos/tests/patroni.nix @@ -166,6 +166,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: start_all() + etcd.wait_for_unit("etcd.service") + with subtest("should bootstrap a new patroni cluster"): wait_for_all_nodes_ready()