mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/test-driver: change run name to distinguish between different kinds of tests
Co-Authored-By: Jeremy Fleischman <me@jfly.fyi>
This commit is contained in:
parent
ea006a9031
commit
9e0eff34c5
1 changed files with 8 additions and 1 deletions
|
|
@ -150,7 +150,14 @@ in
|
|||
config.enableDebugHook -> isLinux
|
||||
) "The debugging hook is not supported for macOS host systems!";
|
||||
{
|
||||
name = "vm-test-run-${config.name}";
|
||||
name =
|
||||
let
|
||||
inherit (config.driverConfiguration) containers vms;
|
||||
kind = lib.concatStringsSep "-and-" (
|
||||
(lib.optional (containers != { }) "container") ++ (lib.optional (vms != { }) "vm")
|
||||
);
|
||||
in
|
||||
"${kind}-test-run-${config.name}";
|
||||
|
||||
requiredSystemFeatures = lib.attrNames (lib.filterAttrs (_: v: v) config.requiredFeatures);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue