From 8c9a8d6805620a6e429b88a92cfa2aa857871dc9 Mon Sep 17 00:00:00 2001 From: Michael Fellinger Date: Tue, 20 Feb 2018 12:55:58 +0100 Subject: [PATCH] Document the makeTest length restriction --- nixos/lib/testing.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/lib/testing.nix b/nixos/lib/testing.nix index 05b4f752da40..efcafbaa5554 100644 --- a/nixos/lib/testing.nix +++ b/nixos/lib/testing.nix @@ -78,6 +78,10 @@ rec { } @ t: let + # A standard store path to the vm monitor is built like this: + # /tmp/nix-build-vm-test-run-$name.drv-0/vm-state-machine/monitor + # The max filename length of a unix domain socket is 108 bytes. + # This means $name can at most be 50 bytes long. maxTestNameLen = 50; testNameLen = builtins.stringLength name;