mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 08:38:18 +03:00
steampipe: enable and skip some tests on darwin
This commit is contained in:
parent
81d35de446
commit
26f5598059
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user