From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AF9291581D3 for ; Sat, 1 Jun 2024 01:27:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E800DE2A1F; Sat, 1 Jun 2024 01:27:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C2BC8E2A1F for ; Sat, 1 Jun 2024 01:27:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A56F033E3A9 for ; Sat, 1 Jun 2024 01:27:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D1686148D for ; Sat, 1 Jun 2024 01:27:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1717205227.a90ce0faabc59915fa897150951467e4933ea1f1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/, net-analyzer/wireshark/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/wireshark/files/wireshark-4.2.5-http2-test.patch net-analyzer/wireshark/wireshark-4.2.5.ebuild net-analyzer/wireshark/wireshark-9999.ebuild X-VCS-Directories: net-analyzer/wireshark/files/ net-analyzer/wireshark/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a90ce0faabc59915fa897150951467e4933ea1f1 X-VCS-Branch: master Date: Sat, 1 Jun 2024 01:27:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b7c86fb0-7bc0-4d9e-ac27-4902dce86da4 X-Archives-Hash: 5a286f272e2e47e51e5d40cfcd26b305 commit: a90ce0faabc59915fa897150951467e4933ea1f1 Author: Sam James gentoo org> AuthorDate: Sat Jun 1 01:27:07 2024 +0000 Commit: Sam James gentoo 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 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 +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 \