test/sandbox: create marker in /var/tmp
All checks were successful
Test / Hakurei (push) Successful in 49s
Test / Create distribution (push) Successful in 39s
Test / Hakurei (race detector) (push) Successful in 48s
Test / Hpkg (push) Successful in 49s
Test / Sandbox (push) Successful in 1m41s
Test / Sandbox (race detector) (push) Successful in 2m31s
Test / Flake checks (push) Successful in 1m29s
All checks were successful
Test / Hakurei (push) Successful in 49s
Test / Create distribution (push) Successful in 39s
Test / Hakurei (race detector) (push) Successful in 48s
Test / Hpkg (push) Successful in 49s
Test / Sandbox (push) Successful in 1m41s
Test / Sandbox (race detector) (push) Successful in 2m31s
Test / Flake checks (push) Successful in 1m29s
This prepares the test suite for private TMPDIR. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
56aad8dc11
commit
1cdc6b4246
@ -58,7 +58,9 @@ let
|
|||||||
packages = [ ];
|
packages = [ ];
|
||||||
path = "${testProgram}/bin/hakurei-test";
|
path = "${testProgram}/bin/hakurei-test";
|
||||||
args = [
|
args = [
|
||||||
"test"
|
"hakurei-test"
|
||||||
|
"-p"
|
||||||
|
"/var/tmp/.hakurei-check-ok.${toString identity}"
|
||||||
"-t"
|
"-t"
|
||||||
(toString (builtins.toFile "hakurei-${tc.name}-want.json" (builtins.toJSON tc.want)))
|
(toString (builtins.toFile "hakurei-${tc.name}-want.json" (builtins.toJSON tc.want)))
|
||||||
"-s"
|
"-s"
|
||||||
|
@ -31,6 +31,7 @@ in
|
|||||||
# For checking pd outcome:
|
# For checking pd outcome:
|
||||||
(pkgs.writeShellScriptBin "check-sandbox-pd" ''
|
(pkgs.writeShellScriptBin "check-sandbox-pd" ''
|
||||||
hakurei -v run hakurei-test \
|
hakurei -v run hakurei-test \
|
||||||
|
-p "/var/tmp/.hakurei-check-ok.0" \
|
||||||
-t ${toString (builtins.toFile "hakurei-pd-want.json" (builtins.toJSON testCases.pd.want))} \
|
-t ${toString (builtins.toFile "hakurei-pd-want.json" (builtins.toJSON testCases.pd.want))} \
|
||||||
-s ${testCases.pd.expectedFilter.${pkgs.system}} "$@"
|
-s ${testCases.pd.expectedFilter.${pkgs.system}} "$@"
|
||||||
'')
|
'')
|
||||||
|
@ -60,7 +60,7 @@ check_offset = 0
|
|||||||
def check_sandbox(name):
|
def check_sandbox(name):
|
||||||
global check_offset
|
global check_offset
|
||||||
swaymsg(f"exec script /dev/null -E always -qec check-sandbox-{name}")
|
swaymsg(f"exec script /dev/null -E always -qec check-sandbox-{name}")
|
||||||
machine.wait_for_file(f"/tmp/hakurei.0/tmpdir/{check_offset}/sandbox-ok", timeout=15)
|
machine.wait_for_file(f"/var/tmp/.hakurei-check-ok.{check_offset}", timeout=15)
|
||||||
check_filter(check_offset, name, "hakurei-test")
|
check_filter(check_offset, name, "hakurei-test")
|
||||||
check_offset += 1
|
check_offset += 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user