Skip to content

Commit 80d0810

Browse files
committed
bat-extras: disable broken tests
1 parent 5d120e8 commit 80d0810

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

pkgs/tools/misc/bat-extras/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ let
5454

5555
dontConfigure = true;
5656

57+
patches = [ ./disable-theme-tests.patch ];
58+
5759
postPatch = ''
5860
patchShebangs --build test.sh test/shimexec .test-framework/bin/best.sh
5961
'';
@@ -103,8 +105,6 @@ let
103105
license = with licenses; [ mit ];
104106
maintainers = with maintainers; [ bbigras ];
105107
platforms = platforms.all;
106-
# not compatible with bat 0.25.0
107-
broken = true;
108108
};
109109
};
110110
script =
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Subject: [PATCH] skip tests depending on color theme
2+
===================================================================
3+
diff --git a/test/suite/batpipe.sh b/test/suite/batpipe.sh
4+
--- a/test/suite/batpipe.sh (revision 36c77c171cc71b2ff3ec4cb781aa16ca3ad258b1)
5+
+++ b/test/suite/batpipe.sh (date 1736621098865)
6+
@@ -29,6 +29,7 @@
7+
test:batpipe_term_width() {
8+
description "Test support for BATPIPE_TERM_WIDTH"
9+
snapshot STDOUT
10+
+ skip "bat-extras does not support `--theme` flag"
11+
12+
export BATPIPE=color
13+
export BATPIPE_DEBUG_PARENT_EXECUTABLE=less
14+
Index: test/suite/batgrep.sh
15+
===================================================================
16+
diff --git a/test/suite/batgrep.sh b/test/suite/batgrep.sh
17+
--- a/test/suite/batgrep.sh (revision 36c77c171cc71b2ff3ec4cb781aa16ca3ad258b1)
18+
+++ b/test/suite/batgrep.sh (date 1736621086239)
19+
@@ -58,6 +58,7 @@
20+
description "Snapshot test for colored output."
21+
snapshot stdout
22+
snapshot stderr
23+
+ skip "bat-extras does not support `--theme` flag"
24+
25+
require_rg
26+
27+
@@ -118,6 +119,7 @@
28+
description "Should respect the BAT_STYLE variable."
29+
snapshot stdout
30+
snapshot stderr
31+
+ skip "bat-extras does not support `--theme` flag"
32+
33+
require_rg
34+
35+
@@ -128,6 +130,7 @@
36+
description "Snapshot test for output without separator"
37+
snapshot stdout
38+
snapshot stderr
39+
+ skip "bat-extras does not support `--theme` flag"
40+
41+
require_rg
42+

0 commit comments

Comments
 (0)