steampipe: enable and skip some tests on darwin
This commit is contained in:
parent
81d35de446
commit
26f5598059
|
@ -4,7 +4,6 @@
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
lib,
|
lib,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
stdenv,
|
|
||||||
steampipe,
|
steampipe,
|
||||||
testers,
|
testers,
|
||||||
}:
|
}:
|
||||||
|
@ -36,8 +35,18 @@ buildGoModule rec {
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" ];
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
# panic: could not create backups directory: mkdir /var/empty/.steampipe: operation not permitted
|
doCheck = true;
|
||||||
doCheck = !stdenv.isDarwin;
|
|
||||||
|
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 = ''
|
postInstall = ''
|
||||||
INSTALL_DIR=$(mktemp -d)
|
INSTALL_DIR=$(mktemp -d)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user