nixos/testing: fix testScript eval for functions without elipsis (#501599)

This commit is contained in:
Jörg Thalheim
2026-03-21 15:12:08 +00:00
committed by GitHub
+7
View File
@@ -14,6 +14,13 @@ in
options = {
testScript = mkOption {
type = either str (functionTo str);
apply =
v:
if lib.isFunction v then
# Only pass args the testScript function expects.
args: v (builtins.intersectAttrs (lib.functionArgs v) args)
else
v;
description = ''
A series of python declarations and statements that you write to perform
the test.