Unverified Commit 5e3302e0 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

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

parents 6c07633f 00f5ae06
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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.