From afe6a38ba27451d16cbc8159f94717df3ef149e5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 16 Feb 2025 19:15:27 +0900 Subject: [PATCH] nix: run integration tests with race detector Signed-off-by: Ophestra --- test.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.nix b/test.nix index f71d906..653f663 100644 --- a/test.nix +++ b/test.nix @@ -110,6 +110,12 @@ nixosTest { environment.fortify = { enable = true; + package = (pkgs.callPackage ./package.nix { }).overrideAttrs (previousAttrs: { + GOFLAGS = [ "-race" ]; + + # required for -race + allowGoReference = true; + }); stateDir = "/var/lib/fortify"; users.alice = 0;