skeema: Fix build on x86_64-darwin
This commit is contained in:
parent
f6bbab1940
commit
fb83752113
1 changed files with 27 additions and 17 deletions
|
@ -17,9 +17,19 @@ buildGoModule rec {
|
|||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
preCheck = ''
|
||||
# Disable tests requiring network access to gitlab.com
|
||||
buildFlagsArray+=("-run" "[^(Test(ParseDir(Symlinks|))|DirRelPath)]")
|
||||
preCheck =
|
||||
let
|
||||
skippedTests = [
|
||||
# Tests requiring network access to gitlab.com
|
||||
"TestDirRelPath"
|
||||
"TestParseDirSymlinks"
|
||||
|
||||
# Flaky tests
|
||||
"TestShellOutTimeout"
|
||||
];
|
||||
in
|
||||
''
|
||||
buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]")
|
||||
|
||||
# Fix tests expecting /usr/bin/printf and /bin/echo
|
||||
substituteInPlace skeema_cmd_test.go \
|
||||
|
|
Loading…
Reference in a new issue