diff --git a/modules/testing/driver/kubetest.nix b/modules/testing/driver/kubetest.nix index 72e1a0f..2da987c 100644 --- a/modules/testing/driver/kubetest.nix +++ b/modules/testing/driver/kubetest.nix @@ -22,10 +22,13 @@ let '' else t.script; - tests = builtins.trace testing pkgs.linkFarm "${testing.name}-tests" (map (t: { - path = toTestScript t; - name = "${t.name}_test.py"; - }) testing.tests); + tests = pkgs.linkFarm "${testing.name}-tests" ( + map (t: { + path = toTestScript t; + name = "${t.name}_test.py"; + }) + ( filter (t: t.script != null) testing.tests ) + ); testScript = pkgs.writeScript "test-${testing.name}.sh" '' #!/usr/bin/env bash diff --git a/modules/testing/test-options.nix b/modules/testing/test-options.nix index 24afdb3..8108c7f 100644 --- a/modules/testing/test-options.nix +++ b/modules/testing/test-options.nix @@ -50,6 +50,7 @@ in { script = mkOption { description = "Test script to use for e2e test"; type = types.nullOr (types.either types.lines types.path); + default = null; }; };