public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/, net-analyzer/wireshark/files/
Date: Sat,  1 Jun 2024 01:27:44 +0000 (UTC)	[thread overview]
Message-ID: <1717205227.a90ce0faabc59915fa897150951467e4933ea1f1.sam@gentoo> (raw)

commit:     a90ce0faabc59915fa897150951467e4933ea1f1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  1 01:27:07 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun  1 01:27:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a90ce0fa

net-analyzer/wireshark: fix tests w/ USE=-http2

Closes: https://bugs.gentoo.org/933290
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/wireshark-4.2.5-http2-test.patch         | 31 ++++++++++++++++++++++
 net-analyzer/wireshark/wireshark-4.2.5.ebuild      |  7 +----
 net-analyzer/wireshark/wireshark-9999.ebuild       |  7 +----
 3 files changed, 33 insertions(+), 12 deletions(-)

diff --git a/net-analyzer/wireshark/files/wireshark-4.2.5-http2-test.patch b/net-analyzer/wireshark/files/wireshark-4.2.5-http2-test.patch
new file mode 100644
index 000000000000..f32109237d6d
--- /dev/null
+++ b/net-analyzer/wireshark/files/wireshark-4.2.5-http2-test.patch
@@ -0,0 +1,31 @@
+https://gitlab.com/wireshark/wireshark/-/merge_requests/15824
+
+From cc8264d68f638c72ada1e94a9913902462c1a25a Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sat, 1 Jun 2024 02:25:05 +0100
+Subject: [PATCH] test: skip test_sharkd_req_follow_http2 test if no http2
+ support
+
+Originally reported downstream in Gentoo at https://bugs.gentoo.org/933290.
+
+This is the same kind of thing as https://gitlab.com/wireshark/wireshark/-/merge_requests/9029.
+--- a/test/suite_sharkd.py
++++ b/test/suite_sharkd.py
+@@ -1174,7 +1174,13 @@ class TestSharkd:
+             },
+         ))
+ 
+-    def test_sharkd_req_follow_http2(self, check_sharkd_session, capture_file):
++    def test_sharkd_req_follow_http2(self, check_sharkd_session, capture_file, features):
++        # If we don't have nghttp2, we output the compressed headers.
++        # We could test against the expected output in that case, but
++        # just skip for now.
++        if not features.have_nghttp2:
++            pytest.skip('Requires nghttp2.')
++
+         check_sharkd_session((
+             {"jsonrpc":"2.0", "id":1, "method":"load",
+              "params":{"file": capture_file('quic-with-secrets.pcapng')}
+-- 
+2.45.1
+

diff --git a/net-analyzer/wireshark/wireshark-4.2.5.ebuild b/net-analyzer/wireshark/wireshark-4.2.5.ebuild
index c7145d15489e..44fe8772760b 100644
--- a/net-analyzer/wireshark/wireshark-4.2.5.ebuild
+++ b/net-analyzer/wireshark/wireshark-4.2.5.ebuild
@@ -141,6 +141,7 @@ fi
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-2.6.0-redhat.patch
+	"${FILESDIR}"/${PN}-4.2.5-http2-test.patch
 )
 
 python_check_deps() {
@@ -269,12 +270,6 @@ src_configure() {
 src_test() {
 	cmake_build test-programs
 
-	EPYTEST_DESELECT=(
-		# TODO: investigate
-		suite_follow_multistream.py::case_follow_multistream::test_follow_http2_multistream
-		suite_sharkd.py::TestSharkd::test_sharkd_req_follow_http2
-	)
-
 	# https://www.wireshark.org/docs/wsdg_html_chunked/ChTestsRunPytest.html
 	epytest \
 		--disable-capture \

diff --git a/net-analyzer/wireshark/wireshark-9999.ebuild b/net-analyzer/wireshark/wireshark-9999.ebuild
index c7145d15489e..44fe8772760b 100644
--- a/net-analyzer/wireshark/wireshark-9999.ebuild
+++ b/net-analyzer/wireshark/wireshark-9999.ebuild
@@ -141,6 +141,7 @@ fi
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-2.6.0-redhat.patch
+	"${FILESDIR}"/${PN}-4.2.5-http2-test.patch
 )
 
 python_check_deps() {
@@ -269,12 +270,6 @@ src_configure() {
 src_test() {
 	cmake_build test-programs
 
-	EPYTEST_DESELECT=(
-		# TODO: investigate
-		suite_follow_multistream.py::case_follow_multistream::test_follow_http2_multistream
-		suite_sharkd.py::TestSharkd::test_sharkd_req_follow_http2
-	)
-
 	# https://www.wireshark.org/docs/wsdg_html_chunked/ChTestsRunPytest.html
 	epytest \
 		--disable-capture \


             reply	other threads:[~2024-06-01  1:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-01  1:27 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-20 23:57 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/, net-analyzer/wireshark/files/ Sam James
2025-01-01 16:48 Andreas Sturmlechner
2024-10-11  2:27 Sam James
2023-01-30  7:17 Florian Schmaus
2022-02-20  6:31 Sam James
2021-12-07  7:13 Sam James
2021-03-04  4:58 Sam James
2020-11-16  6:10 Sam James
2020-01-17 12:29 Jeroen Roovers
2019-01-09 12:14 Jeroen Roovers
2018-12-13 14:21 Jeroen Roovers
2018-07-24  8:57 Jeroen Roovers
2018-07-19 12:07 Jeroen Roovers
2018-06-03 11:06 Jeroen Roovers
2018-06-03 10:51 Jeroen Roovers
2018-05-04 18:01 Jeroen Roovers
2018-05-02 18:37 Jeroen Roovers
2018-01-16  9:56 Jeroen Roovers
2017-11-27  7:52 Jeroen Roovers
2016-06-30 19:24 Jeroen Roovers
2016-01-20  6:06 Jeroen Roovers
2015-12-24 12:50 Jeroen Roovers
2015-11-12  7:42 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1717205227.a90ce0faabc59915fa897150951467e4933ea1f1.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox