mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
nixosTest: fix tests defined with pkgs.nixosTest
This commit is contained in:
parent
b3e14b9045
commit
8a7282f90b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user