From nobody Thu Oct 31 17:45:59 2024 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 4XfWcm0Rfgz5c5cY; Thu, 31 Oct 2024 17:46:00 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XfWcl3Vzkz4tNg; Thu, 31 Oct 2024 17:45:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730396759; 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=Iyl2n8PqFkonNHLPIhnGNRxA21QGTb7cCjIYa48jaZg=; b=B7qaxggEDOacMX/09HpNlb5t5/PMgEsHLQdnTsD38W3Qj1bCaRMhcbFKYts8oADaZ86lFN jyl50SJKbDPVxvsKVa9As1ytqBAh0QzeQZ7MenpfzFTfyC1kWRzwsBYUCB9ayHb8Zcbw3j 3XoLqqPiMOzp+iOm1ukRZlWE6Ahdv96VVyvb8iA95pRoBgrT2ukW9pFhcgBY4jkuO8UKMY pkmCanFC8Kyegz7k+ihh1A5lngmCW8WPI6MbTji1wqn7wJl8v7QOM0MEB0k9hNA/IknKyR wJn+vFxveEw0eXJnxKYS6ahoWwHPPoX1rxHUV3YYFiKE82Z37jXrmTgMKSs/aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730396759; 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=Iyl2n8PqFkonNHLPIhnGNRxA21QGTb7cCjIYa48jaZg=; b=r7FwEKIBAO3eqAM86XcCOJ4TFZUfxB9RxsiJ29uzk/jiVud4IE74LuBSq6BN8KXL2hr0UN Zpv+gsKpTs7tB6L7QaEg//G4ih/qGLXfCad9NF51qIJxhzn4MTM2flhvzCVIINKLfY4IsA hJyXR5ay4x6N2/2RcbLtS5mfFuiqYbF0wJ1eRUxxkQXJNkKxfhDandVBlwWJIijx9s2Cpw 0dzOcwLk5QRpvqRktIbULEpcOMq9hccr3h0ozkoO27YSi/Uw1vnmlHavTRVPeC9fQks0kW 6IZ1PfFBpp9NFFz+cy3x5NSA8g+58mC4Ybm7DF8wRwI+HkUqikaxuxTOBnSl9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730396759; a=rsa-sha256; cv=none; b=YPsnzacoBYmiC9IltP9V2/ElosBtOqfYtuoeLvcYZ2MFUrFOoXufFG9DzUzG7AW+iDxDoe tHfh2QXcY17mWvNP2jLRxu2d6gZK74GBS+3nmfYltyXBDLrqCoMQMKhWIvpcJSMv44NAdx WMmaNe7VbK1x9lzLbvNMuxhfYBQQjUZ6kjDh+X5T88GMGBio+mQjyDA6/XVboRX2/rdfeQ JLLGShkAwSWVhVnLGOpAPMq4NmDUmgCl0LaaIZXlUbmGqMCcNdbAS8yZF2PJ2ZPwsOFHFB 5xV5d7LdGmhOVOpIIBp20tdF6BTDscQM3KHnJ0pkNgBd2fGUu/ZyIF4Tr4dQFw== 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 4XfWcl36pszmBp; Thu, 31 Oct 2024 17:45:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49VHjx7V065545; Thu, 31 Oct 2024 17:45:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49VHjx98065542; Thu, 31 Oct 2024 17:45:59 GMT (envelope-from git) Date: Thu, 31 Oct 2024 17:45:59 GMT Message-Id: <202410311745.49VHjx98065542@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Igor Ostapenko Subject: git: 68e013783780 - main - tests: Switch bin/hostname/hostname_test to execenv=jail List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: igoro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 68e01378378089a9b8543a53a4e80b231133c92d Auto-Submitted: auto-generated The branch main has been updated by igoro: URL: https://cgit.FreeBSD.org/src/commit/?id=68e01378378089a9b8543a53a4e80b231133c92d commit 68e01378378089a9b8543a53a4e80b231133c92d Author: Igor Ostapenko AuthorDate: 2024-10-31 17:44:49 +0000 Commit: Igor Ostapenko CommitDate: 2024-10-31 17:44:49 +0000 tests: Switch bin/hostname/hostname_test to execenv=jail Kyua skips tests based on the jail execution environment if a system is built WITHOUT_JAIL. Thus, the test case does not need to handle it. Reviewed by: markj Approved by: markj (mentor) Differential Revision: https://reviews.freebsd.org/D47334 --- bin/hostname/tests/hostname_test.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/hostname/tests/hostname_test.sh b/bin/hostname/tests/hostname_test.sh index a4d4d54bb052..a032fd91229b 100644 --- a/bin/hostname/tests/hostname_test.sh +++ b/bin/hostname/tests/hostname_test.sh @@ -42,9 +42,6 @@ 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} @@ -61,6 +58,7 @@ basic_head() { atf_set require.user root atf_set "descr" "basic test for getting hostname" + atf_set execenv jail } basic_body() { @@ -81,9 +79,6 @@ basic_body() } basic_cleanup() { - if ! which -s jail; then - atf_skip "This test requires jail" - fi recycle }