Revert "nixos/lib/testing: avoid generating darwin VM tests"
This reverts commit 72155225aa.
This commit is contained in:
@@ -9,8 +9,6 @@ let
|
|||||||
};
|
};
|
||||||
runTest =
|
runTest =
|
||||||
module:
|
module:
|
||||||
# Infra issue: virtualization on darwin doesn't seem to work yet.
|
|
||||||
lib.addMetaAttrs { hydraPlatforms = lib.platforms.linux; }
|
|
||||||
(evalTest (
|
(evalTest (
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,9 +36,7 @@ in
|
|||||||
};
|
};
|
||||||
platforms = lib.mkOption {
|
platforms = lib.mkOption {
|
||||||
type = types.listOf types.raw;
|
type = types.listOf types.raw;
|
||||||
# darwin could be added, but it would add VM tests that don't work on Hydra.nixos.org (so far)
|
default = lib.platforms.linux ++ lib.platforms.darwin;
|
||||||
# see https://github.com/NixOS/nixpkgs/pull/303597#issuecomment-2128782362
|
|
||||||
default = lib.platforms.linux;
|
|
||||||
description = ''
|
description = ''
|
||||||
Sets the [`meta.platforms`](https://nixos.org/manual/nixpkgs/stable/#var-meta-platforms) attribute on the [{option}`test`](#test-opt-test) derivation.
|
Sets the [`meta.platforms`](https://nixos.org/manual/nixpkgs/stable/#var-meta-platforms) attribute on the [{option}`test`](#test-opt-test) derivation.
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user