From 08e0141f1b6eaa2783a36317c63f5f3a7ba6e3f9 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Thu, 11 May 2023 14:27:27 -0400 Subject: [PATCH] be compatible with the testing system in nixos 22.11 It passes us more arguments and it requires us to give each test definition a name. --- nixos/tests/private-storage.nix | 2 ++ nixos/tests/tahoe.nix | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/tests/private-storage.nix b/nixos/tests/private-storage.nix index 95a90f22..d7a5aaaf 100644 --- a/nixos/tests/private-storage.nix +++ b/nixos/tests/private-storage.nix @@ -66,6 +66,8 @@ let networking.dhcpcd.enable = false; }; in { + name = "private-storage"; + # https://nixos.org/nixos/manual/index.html#sec-nixos-tests # https://nixos.mayflower.consulting/blog/2019/07/11/leveraging-nixos-tests-in-your-project/ nodes = rec { diff --git a/nixos/tests/tahoe.nix b/nixos/tests/tahoe.nix index a007e65e..5b3c5c38 100644 --- a/nixos/tests/tahoe.nix +++ b/nixos/tests/tahoe.nix @@ -1,8 +1,9 @@ -{ pkgs }: +{ pkgs, ... }: let ourpkgs = pkgs.callPackage ../pkgs { }; in { + name = "tahoe"; nodes = { storage = { config, pkgs, ourpkgs, ... }: { imports = [ -- GitLab