diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-06-07 03:10:36 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-06-07 03:10:36 +0900 |
| commit | 9a7c81a44e4876f2efde1e2d71a5ffbb0b3e96a8 (patch) | |
| tree | 80ffd4b7932e5d8efa84319c750c43c2a7faab26 /test/test.py | |
| parent | b7e991de5bfa81bff474d07142555df51202640a (diff) | |
nix: go generate in src derivation
This saves the generated files in the nix store and exposes them for use by external tools.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/test.py')
| -rw-r--r-- | test/test.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test.py b/test/test.py index ceb067e4..b912d6ef 100644 --- a/test/test.py +++ b/test/test.py @@ -80,9 +80,6 @@ def fortify(command): start_all() machine.wait_for_unit("multi-user.target") -# Run fortify Go tests outside of nix build in the background: -machine.succeed("sudo -u untrusted -i fortify-go-test &> /tmp/go-test &") - # To check fortify's version: print(machine.succeed("sudo -u alice -i fortify version")) @@ -90,6 +87,9 @@ print(machine.succeed("sudo -u alice -i fortify version")) machine.wait_for_file("/run/user/1000/wayland-1") machine.wait_for_file("/tmp/sway-ipc.sock") +# Run fortify Go tests outside of nix build in the background: +swaymsg("exec fortify-test") + # Deny unmapped uid: denyOutput = machine.fail("sudo -u untrusted -i fortify run &>/dev/stdout") print(denyOutput) @@ -255,6 +255,6 @@ machine.wait_for_file("/tmp/sway-exit-ok") print(machine.succeed("find /run/user/1000/fortify")) # Verify go test status: -machine.wait_for_file("/tmp/go-test", timeout=5) -print(machine.succeed("cat /tmp/go-test")) -machine.wait_for_file("/tmp/go-test-ok", timeout=5) +machine.wait_for_file("/tmp/fortify-test-done") +print(machine.succeed("cat /tmp/fortify-test.log")) +machine.wait_for_file("/tmp/fortify-test-ok", timeout=2) |
