[packages/jq/debug: 2/2] disable tests that require pty (through script)

atler atler at pld-linux.org
Sat Sep 9 15:27:15 CEST 2023


commit bb734232de8c2dd1bd786fa24bcf87ec017dfbbb
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Sep 9 14:41:32 2023 +0200

    disable tests that require pty (through script)

 jq.spec            |  2 ++
 tests-no-pty.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/jq.spec b/jq.spec
index d511872..3c1afb4 100644
--- a/jq.spec
+++ b/jq.spec
@@ -20,6 +20,7 @@ Group:		Applications/Text
 Source0:	https://github.com/jqlang/jq/releases/download/%{name}-%{version}/jq-%{version}.tar.gz
 # Source0-md5:	4662fd45f0b5622382fc85c1249739d5
 Patch0:		static.patch
+Patch1:		tests-no-pty.patch
 URL:		https://jqlang.github.io/jq/
 BuildRequires:	autoconf >= 2.65
 BuildRequires:	automake >= 1:1.11.2
@@ -90,6 +91,7 @@ Statyczna biblioteka jq.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/tests-no-pty.patch b/tests-no-pty.patch
new file mode 100644
index 0000000..74b5705
--- /dev/null
+++ b/tests-no-pty.patch
@@ -0,0 +1,11 @@
+--- jq-1.7/tests/shtest.orig	2023-09-06 22:00:31.000000000 +0200
++++ jq-1.7/tests/shtest	2023-09-09 14:40:45.573460403 +0200
+@@ -503,7 +503,7 @@
+ cmp $d/warning $d/expect_warning
+ 
+ # Check $NO_COLOR
+-test_no_color=true
++test_no_color=false
+ $msys  && test_no_color=false
+ $mingw && test_no_color=false
+ if $test_no_color && command -v script >/dev/null 2>&1; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jq.git/commitdiff/bb734232de8c2dd1bd786fa24bcf87ec017dfbbb



More information about the pld-cvs-commit mailing list