Do this at the beginning of the test for early failure. Signed-off-by: Ophestra <cat@gensokyo.uk>
13 lines
184 B
Nix
13 lines
184 B
Nix
{
|
|
writeShellScript,
|
|
callPackage,
|
|
|
|
version,
|
|
}:
|
|
writeShellScript "check-sandbox" ''
|
|
set -e
|
|
${callPackage ./mount.nix { inherit version; }}/bin/test
|
|
|
|
touch /tmp/sandbox-ok
|
|
''
|