about summary refs log tree commit diff
path: root/pkgs/by-name/in
diff options
context:
space:
mode:
authorPaul Meyer <49727155+katexochen@users.noreply.github.com>2024-01-07 11:10:58 +0100
committerPaul Meyer <49727155+katexochen@users.noreply.github.com>2024-04-15 07:39:04 +0200
commitb2f0e7301eaa8fdeb2b1975f01304dabd1a540d1 (patch)
treeaf4a5381e981ca8fa34c3cfe2ab2ca26bd763bac /pkgs/by-name/in
parentdd540970e215516c6682bd5f7c7eb9f4bb666c62 (diff)
treewide: remove buildFlags use in buildGoModule
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Diffstat (limited to 'pkgs/by-name/in')
-rw-r--r--pkgs/by-name/in/incus/generic.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/by-name/in/incus/generic.nix b/pkgs/by-name/in/incus/generic.nix
index cf73d366e10c8..dacbe6e96e3f1 100644
--- a/pkgs/by-name/in/incus/generic.nix
+++ b/pkgs/by-name/in/incus/generic.nix
@@ -81,7 +81,8 @@ buildGoModule rec {
     make incus-agent incus-migrate
   '';
 
-  preCheck =
+  # Disable tests requiring local operations
+  checkFlags =
     let
       skippedTests = [
         "TestValidateConfig"
@@ -91,10 +92,7 @@ buildGoModule rec {
         "TestContainerTestSuite"
       ];
     in
-    ''
-      # Disable tests requiring local operations
-      buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]")
-    '';
+    [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
 
   postInstall = ''
     installShellCompletion --cmd incus \