test/sandbox: check mount outcome
All checks were successful
Test / Create distribution (push) Successful in 21s
Test / Fpkg (push) Successful in 32s
Test / Fortify (push) Successful in 35s
Test / Data race detector (push) Successful in 35s
Test / Flake checks (push) Successful in 49s

Do this at the beginning of the test for early failure.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-02-28 15:56:15 +09:00
parent 558974b996
commit d8e9d71f87
4 changed files with 124 additions and 14 deletions

12
test/sandbox/default.nix Normal file
View File

@@ -0,0 +1,12 @@
{
writeShellScript,
callPackage,
version,
}:
writeShellScript "check-sandbox" ''
set -e
${callPackage ./mount.nix { inherit version; }}/bin/test
touch /tmp/sandbox-ok
''