nixops_unstable: fix tests eval with allowAliases = false;
Without the change `tests` eval fails as:
$ nix build --no-link -f. nixops_unstable.tests --arg config '{ allowAliases = false; }'
error:
error: attribute 'nixosTest' missing
22| testLegacyNetwork = { nixopsPkg, ... }: pkgs.nixosTest ({
| ^
23| name = "nixops-legacy-network";
Did you mean nixosTests?
The alias is defined as:
pkgs/top-level/aliases.nix: nixosTest = testers.nixosTest; # Added 2022-05-05
This commit is contained in:
@@ -19,7 +19,7 @@ let
|
||||
passthru.override = args': testsForPackage (args // args');
|
||||
};
|
||||
|
||||
testLegacyNetwork = { nixopsPkg, ... }: pkgs.nixosTest ({
|
||||
testLegacyNetwork = { nixopsPkg, ... }: pkgs.testers.nixosTest ({
|
||||
name = "nixops-legacy-network";
|
||||
nodes = {
|
||||
deployer = { config, lib, nodes, pkgs, ... }: {
|
||||
|
||||
Reference in New Issue
Block a user