Unverified Commit 944e26dc authored by K900's avatar K900 Committed by GitHub
Browse files

Merge pull request #259318 from K900/fix-externally-defined-nixos-tests

nixosTest: fix tests defined with pkgs.nixosTest
parents 87828a0e 8a7282f9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -28,9 +28,9 @@ let
            {
              virtualisation.qemu.package = testModuleArgs.config.qemu.package;
            })
          (optionalAttrs (!config.node.pkgsReadOnly) {
          ({ options, ... }: {
            key = "nodes.nix-pkgs";
            config = {
            config = mkIf (!options.nixpkgs.pkgs.isDefined) {
              # Ensure we do not use aliases. Ideally this is only set
              # when the test framework is used by Nixpkgs NixOS tests.
              nixpkgs.config.allowAliases = false;