gitbatch: Fix tests requiring .git & writable HOME
Disable the tests requiring access to gitlab.com Bug fixed by #173702 runs the previously skipped tests for this package.
This commit is contained in:
parent
aee4df7eeb
commit
a3205db0c5
1 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub, git }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "gitbatch";
|
pname = "gitbatch";
|
||||||
|
@ -15,7 +15,15 @@ buildGoModule rec {
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" ];
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
checkFlags = [ "-short" ];
|
nativeBuildInputs = [
|
||||||
|
git # required by unit tests
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
HOME=$(mktemp -d)
|
||||||
|
# Disable tests requiring network access to gitlab.com
|
||||||
|
buildFlagsArray+=("-run" "[^(Test(Run|Start|(Fetch|Pull)With(Go|)Git))]")
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Running git UI commands";
|
description = "Running git UI commands";
|
||||||
|
|
Loading…
Reference in a new issue