From nobody Fri Feb 23 09:48:42 2024 X-Original-To: dev-commits-src-all@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 4Th4vv0HtVz5C8GJ; Fri, 23 Feb 2024 09:48:43 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Th4vt5J5xz4NxB; Fri, 23 Feb 2024 09:48:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708681722; 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=70Yv2mRfqWIdoXlR9YT4qEHfLYROm2BJ2c4k8b3YHRs=; b=ApA53oO5XnorwDlZciwu/uwWEz1BkTVjadGc0UmNpEw/h0gHmo9nfquo+2fi5Lbph2Qdw8 KKhqbX+60bmVfJsuch9Ne5Xtj0Bmjeg1pMZYR0bF5nZaCJlXRJeRWRCjWM3g9Wi6qwpgqJ K5CHhX4quQlTVJKffsQRPAyuFLfBBsehWhlGl1jkVEGNvZ1Ft3IBg8sJ//0ZbBeJqjamzP OC4t/jjiy2zBHVcNJNrnalotAX12W4zUP2wJqfqa/ZmTM/yTWybho6CnTI0mT1tD948Nui zKoAtXPJ83ccU/WSZuzA8V9526dzLBrTjh8NtMOHE6/cbnT8bekXJfhha988GQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708681722; a=rsa-sha256; cv=none; b=f/H5brrzFE9wKrCz3COwpOn8RKCevLrA5MrQMkPfbYjGfVxJdcRiPoj7yrHLaFmHlgLvle 6SnpbtYmMzkRU+IDS4EepWMSJdTIzxh/auEWoy0Utngr81U/PA0pk0hSwTCfFs/30OTF0+ R2G7h6xZ3Zf7w1TkjpydJznBOUKpPOX3whRBCojhuG6yWiliVK2eFqlkfSQ5MWdUvc4YpB O6nrs603SqUfkxWbJm4w+ER6fjImPcoWh/fknA4TE5Gv90ZG7IoCtUase6SBznHhBusn3F AuO9Ed/tdCsZERgMdF107Hd7M+sHyUoUsgKnuPQSO0LlURvuI08xwVsXVpcHOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708681722; 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=70Yv2mRfqWIdoXlR9YT4qEHfLYROm2BJ2c4k8b3YHRs=; b=C7DwaniHP5Ru2KYaJaOHOyT01XWi13bY7M2OCDwziV6Yi0y9sB4X35A2RR3pEBe3GKXSVx f4Zj4xXIMmshXncMdNaWBxpy8OV9Zgja3dHDr08HL8tdOMxrqHmUBbDF94HwqbFXVzmXJ9 FbsWdmxTyhzDCjUF8VGwsQbVxxGeYA49r3xqb4s0nfnSL3uovvDPsVr9rP2YxjHgGePD/S 0veJVs2IHvXu0ZicwpmZfVQg/tO1yLOgoSz8/TX1ZT1XL18ZKxXFd0KgMXciK51earXyCy lHb6T88tT4yJfWIaIrtDIFV7bi4+Ncgqv6Vup71oy6pcKXEJX/ur/2uWXJqx6A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Th4vt4Nkfz19L7; Fri, 23 Feb 2024 09:48:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41N9mgpu075247; Fri, 23 Feb 2024 09:48:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41N9mgYE075244; Fri, 23 Feb 2024 09:48:42 GMT (envelope-from git) Date: Fri, 23 Feb 2024 09:48:42 GMT Message-Id: <202402230948.41N9mgYE075244@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Cochard Subject: git: 3562b7b1eb80 - main - hostname(1): skip test if jail binary is missing List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olivier X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3562b7b1eb80107fe2832bf5a2bfa1a03888db1c Auto-Submitted: auto-generated The branch main has been updated by olivier: URL: https://cgit.FreeBSD.org/src/commit/?id=3562b7b1eb80107fe2832bf5a2bfa1a03888db1c commit 3562b7b1eb80107fe2832bf5a2bfa1a03888db1c Author: Olivier Cochard AuthorDate: 2024-02-23 09:46:34 +0000 Commit: Olivier Cochard CommitDate: 2024-02-23 09:46:34 +0000 hostname(1): skip test if jail binary is missing Approved by: lwhsu Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D44005 --- bin/hostname/tests/hostname_test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/hostname/tests/hostname_test.sh b/bin/hostname/tests/hostname_test.sh index 57517821f7f1..2ad6a1a5c358 100644 --- a/bin/hostname/tests/hostname_test.sh +++ b/bin/hostname/tests/hostname_test.sh @@ -42,6 +42,9 @@ test_jail_conf='%%test_jail_name%% { init() { + if ! which -s jail; then + atf_skip "This test requires jail" + fi echo "${test_jail_conf}" | \ sed -e "s/%%test_jail_name%%/${test_jail_name}/" > "./jail.conf" jail -f "./jail.conf" -c ${test_jail_name}