steampipe: enable and skip some tests on darwin

This commit is contained in:
Anthony Roussel 2024-03-26 12:03:43 +01:00
parent 81d35de446
commit 26f5598059
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E
1 changed files with 12 additions and 3 deletions

View File

@ -4,7 +4,6 @@
installShellFiles,
lib,
nix-update-script,
stdenv,
steampipe,
testers,
}:
@ -36,8 +35,18 @@ buildGoModule rec {
ldflags = [ "-s" "-w" ];
# panic: could not create backups directory: mkdir /var/empty/.steampipe: operation not permitted
doCheck = !stdenv.isDarwin;
doCheck = true;
checkFlags =
let
skippedTests = [
# panic: could not create backups directory: mkdir /var/empty/.steampipe: operation not permitted
"TestTrimBackups"
# Skip tests that require network access
"TestIsPortBindable"
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
postInstall = ''
INSTALL_DIR=$(mktemp -d)