1
0
Fork 0

make extraScript appear as its own subtest

This commit is contained in:
ibizaman 2024-08-13 16:11:03 +02:00 committed by Pierre Penninckx
parent 8d68b3b411
commit b466ca4346

View file

@ -82,7 +82,14 @@
raise Exception(f"auth query should be rd=${proto_fqdn}/ but is {response['auth_query']}")
''
)
+ extraScript args;
+ (let
script = extraScript args;
indent = indent: str: lib.concatMapStringsSep "\n" (x: (lib. replicate indent " ") + x) (lib.splitString "\n" script);
in
lib.optionalString (script != "") ''
with subtest("extraScript"):
${indent 4 script}
'');
base = pkgs: additionalModules: {
imports = [