From nobody Wed Oct 28 20:27:40 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jFJnm3FXBz6x5M2 for ; Wed, 28 Oct 2026 20:27:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4jFJnm2X5kz4PLg for ; Wed, 28 Oct 2026 20:27:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793219260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CgAQNR5yMNW/5MqXy2XQCqQdHK8KV+w6RKaX33mx4Xg=; b=CpJzIjgFSEkUBogYuZ1p5Cg8yZq42GL0BsssRfeAiSw0L+dt2j6vMzPn1AkJ3w2mQzwiNB z62a8SVkhFaL6yB3dfisxoCDQLhKHCsjq4PrbWGg9itsF/dIQJDdtUVvlATHvxTMICfcLW pSYdA+AxGEceI8PNhUQ9VdpgDYYnlrwvNjz/r1U9MW2VxuZ+a1w29g3xzsfQndcQP0H2VA WIWGHKXMAAQpRXlKBVOysRbAxdBv4GQToqd6kP9G6tc1fbfrJ80Pd2r5f0nEkog1y/s93Y 4RyjBuAGochf1IB31A6nOeklFgKbTxw/qS0ruzAtA4SdP/g2hX6Nq+hnxnlkZg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793219260; b=pWkYyffVVeqmfXcKerE8Z0xwkiYJtkWMHOP4gfaqoduDE2kuG/djs3pns3qKIxgCCFG3Ev 821jDAI+MMl2XWFK57LQi7rCV8nKhp2QQKtUyZnehj0KmCfdssm1I2oQ8FgM1/LSOzqUDg rFMZ2EViCm8Wdkenh87tdtHoc1CB7DBVZc08S41CV/+rPlIH1S08OXU7hig4IKLWO+hEP7 r5HAz//S/V8mepPdUaMmgYzrhMsa/QqKtbkkZwPm11e9Be0F1h2m1Th5G9F3Zl6wX3P35p 2Bxb2z6w521GRh5BGZ/Vi3PGKX3ba4FKrnpys5dBpw6DQinZ8HhY3Wucm3DRnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793219260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CgAQNR5yMNW/5MqXy2XQCqQdHK8KV+w6RKaX33mx4Xg=; b=dlR/s7tCTvHgZKRe0oJ4S/sQtF4RMcKFSX0RrOWbG2ITtLITMFrvgYcRPIehzZGrCmTEZ+ J5jgN29L9/l53ZtJy9+Kx8HduOvEAxGZFIGfC9rlNYgVruClpEGjWW4CCpwFWjPrqQqns4 CU3M7zRElmGoZxeKJ1MVn+6NCLw5bZnNeto7SC4QXh+0xTQnlQD0T3qd3kpESAXylpZJbw 9KHZ+EO060HRtYT77SMEtfvAQJjHRGrDtbIAskfHauOCg7G7CGbMSnQfSflXLZfGxxp60J hSkGoQTqt5exiBuPXOjlUT10VWZzFuPN1NHh5QWYYH1EVzcOWliac/HnovsVKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jFJnm1ZYmz1Mgk for ; Wed, 28 Oct 2026 20:27:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 19d40 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 28 Oct 2026 20:27:40 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 8fa55fdcae4e - main - tests/dhclient: Skip tests if scapy is not installed List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8fa55fdcae4ecbd2ec13ef91cc9d172095e21189 Auto-Submitted: auto-generated Date: Wed, 28 Oct 2026 20:27:40 +0000 Message-Id: <6ae25abc.19d40.2f936100@gitrepo.freebsd.org> The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8fa55fdcae4ecbd2ec13ef91cc9d172095e21189 commit 8fa55fdcae4ecbd2ec13ef91cc9d172095e21189 Author: Mark Johnston AuthorDate: 2026-10-28 20:26:44 +0000 Commit: Mark Johnston CommitDate: 2026-10-28 20:26:44 +0000 tests/dhclient: Skip tests if scapy is not installed Fixes: a143197801c6 ("dhclient: Add some regression tests") --- sbin/dhclient/tests/functional.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbin/dhclient/tests/functional.py b/sbin/dhclient/tests/functional.py index 205bd11a76ef..518d1050aba7 100644 --- a/sbin/dhclient/tests/functional.py +++ b/sbin/dhclient/tests/functional.py @@ -20,8 +20,6 @@ def mac_to_chaddr(mac_str): return mac_bytes + b"\x00" * (16 - len(mac_bytes)) - - class TestDhclient(VnetTestTemplate): _SERVER_IP = "192.0.2.1" _CLIENT_IP = "192.0.2.10" @@ -169,6 +167,7 @@ class TestDhclient(VnetTestTemplate): ) @pytest.mark.require_user("root") + @pytest.mark.require_progs(["scapy"]) def test_classless_routes_truncated(self): """ Verify that dhclient rejects a DHCPOFFER containing a truncated @@ -198,6 +197,7 @@ class TestDhclient(VnetTestTemplate): assert "inet {}".format(self._CLIENT_IP) in result["ifconfig"] @pytest.mark.require_user("root") + @pytest.mark.require_progs(["scapy"]) def test_filename_backslash(self): """ Verify that backslashes in the BOOTP filename don't cause the @@ -212,6 +212,7 @@ class TestDhclient(VnetTestTemplate): assert "inet {}".format(self._CLIENT_IP) in result["ifconfig"] @pytest.mark.require_user("root") + @pytest.mark.require_progs(["scapy"]) def test_sname_valid(self): """ Verify that a valid server name is preserved in the lease file. @@ -225,6 +226,7 @@ class TestDhclient(VnetTestTemplate): assert "dhcp.example.com" in result["lease"] @pytest.mark.require_user("root") + @pytest.mark.require_progs(["scapy"]) def test_sname_quote(self): """ Verify that a double quote in the BOOTP server name causes the