test/sandbox: pass want file as argument
All checks were successful
Test / Create distribution (push) Successful in 25s
Test / Fpkg (push) Successful in 33s
Test / Fortify (push) Successful in 2m7s
Test / Data race detector (push) Successful in 2m36s
Test / Flake checks (push) Successful in 49s

This avoids building the check program multiple times.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-23 15:00:59 +09:00
parent 75e0c5d406
commit 2d379b5a38
3 changed files with 16 additions and 22 deletions

View File

@@ -25,6 +25,8 @@ let
;
};
checkSandbox = callPackage ../. { inherit version; };
callTestCase =
path:
let
@@ -40,10 +42,7 @@ let
verbose = true;
share = foot;
packages = [ ];
command = "${callPackage ../. {
inherit (tc) name want;
inherit version;
}}";
command = builtins.toString (checkSandbox tc.name tc.want);
extraPaths = [
{
src = "/proc/mounts";