make extraScript appear as its own subtest
This commit is contained in:
parent
8d68b3b411
commit
b466ca4346
1 changed files with 8 additions and 1 deletions
|
@ -82,7 +82,14 @@
|
||||||
raise Exception(f"auth query should be rd=${proto_fqdn}/ but is {response['auth_query']}")
|
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: {
|
base = pkgs: additionalModules: {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
Loading…
Reference in a new issue