From 6c68fbd4e1f8beac39cb1f499ff90c78256262d6 Mon Sep 17 00:00:00 2001 From: Léo Gaspard Date: Sun, 11 Nov 2018 17:41:11 +0900 Subject: tests: refactor to carry the package set as an argument This way, the package set will be possible to pass without re-importing all the time --- nixos/tests/kafka.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'nixos/tests/kafka.nix') diff --git a/nixos/tests/kafka.nix b/nixos/tests/kafka.nix index c9fd74620efb..a833e01f9f5e 100644 --- a/nixos/tests/kafka.nix +++ b/nixos/tests/kafka.nix @@ -1,5 +1,9 @@ -{ system ? builtins.currentSystem }: -with import ../lib/testing.nix { inherit system; }; +{ system ? builtins.currentSystem, + config ? {}, + pkgs ? import ../.. { inherit system config; } +}: + +with import ../lib/testing.nix { inherit system pkgs; }; with pkgs.lib; let -- cgit 1.4.1