mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
Merge pull request #117275 from hercules-ci/nixosTest-remove-nixpkgs-commit-hash
nixosTest: Make system.nixos.revision constant
This commit is contained in:
commit
76a7840f5f
|
@ -36,6 +36,13 @@ rec {
|
||||||
[ ../modules/virtualisation/qemu-vm.nix
|
[ ../modules/virtualisation/qemu-vm.nix
|
||||||
../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs
|
../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs
|
||||||
{ key = "no-manual"; documentation.nixos.enable = false; }
|
{ key = "no-manual"; documentation.nixos.enable = false; }
|
||||||
|
{ key = "no-revision";
|
||||||
|
# Make the revision metadata constant, in order to avoid needless retesting.
|
||||||
|
# The human version (e.g. 21.05-pre) is left as is, because it is useful
|
||||||
|
# for external modules that test with e.g. nixosTest and rely on that
|
||||||
|
# version number.
|
||||||
|
config.system.nixos.revision = "constant-nixos-revision";
|
||||||
|
}
|
||||||
{ key = "nodes"; _module.args.nodes = nodes; }
|
{ key = "nodes"; _module.args.nodes = nodes; }
|
||||||
] ++ optional minimal ../modules/testing/minimal-kernel.nix;
|
] ++ optional minimal ../modules/testing/minimal-kernel.nix;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue