From nobody Thu Feb 09 16:11:24 2023 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 4PCMLP2WThz3plTk; Thu, 9 Feb 2023 16:11:25 +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 4PCMLP1YQVz4JFN; Thu, 9 Feb 2023 16:11:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675959085; 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=enTWaJ4BfUoEELQnyAP0pIs6FMeZ4pAeub6XAjwDCN8=; b=BF4CVlNYmGyJj+HHhZr4Ot4JxKwIpk9zjAFVO45m2UqlEz4kj57u4c64+0SDO+8PdWkDPy S9tqCPU7FYZe8f9sg0dQRYMyHZ5jqpBFRMv+N7j6x7yy6j4Hc/uvuycDqISyX9uYJQn5Xn M4bW0a9onjFD91GnDSWaDxU9uY8uYmQ+bC0cGbpLMdKYxMvntzSKNRMFyGTffYkwI+Xxgg 24OEDBt1iKRokcU5+tZYPtVgQM1UexmqnOjMzYgVZUzvINIJGTpEx3dgJODmOxl7khAEp1 TzQC3kWZJpKlIvmyCVgcszhYBlT0zqsdqTtsJgMBY5bhU6zEVeiQB4FGRV7rig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675959085; 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=enTWaJ4BfUoEELQnyAP0pIs6FMeZ4pAeub6XAjwDCN8=; b=chYGe3oG/h6x/TG9q/XHwq2aJ+UVh5EbWxtTBIlxQYkvkLDGXB8A3RFnCulkvaEDoExN4t IgKECSZCdNGz6paDdaq9KjupRD37zFov4xxxGSAAoVa/cdkFIj2Ju4fuVZSifG0X0QGUZy 5CrZ401fFPiTXVYVG5xVXPIYgRocjBxVgwx/39T6U2FCKH+C18h+9w6n+JYOY9j56kTenn BMwQZMWua94Wq1aNUY7wF3OThoCDSr5mYw2daAErF/anOeES1a4WNa0TSNNVmcsZT+sy7P FJH+BnLVEPBBMrZFgj3apt+YJG96f41YGiGKJkWHL77CMesQWZuSBvLCt2+EVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675959085; a=rsa-sha256; cv=none; b=A8L0024tf+cIZ9qf2FwSI32R5nQcsCnjrJKEFY6ViQbj/ZB/zz21dF1ZIsCMaeztRckNNF 1/PLf3gDbY/ykfel/8Fvgi7UhgBV82NP53+PSaefdgG+D72JTsdYEQIdrBiS7n6dmLOWtL M95pYEycv7ig5tdpn28NNLvep7JX0/HqPSWrGx7TE6rEm5PHEU/YMYiztTFez/x93uhdvw mMWeXfKBNx/ZaeNQPdcvOLdoSbNr6CyC2jkmFZ4fxEzH7QQEXblety5ycl2M8CTCWCutsw +Vd1omCsqaesc9du9baHK1tDNkbdQ3xM+EmvUE6fbssLbCzymVfFgZ8FXjjkMQ== 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 4PCMLP0RySzk0h; Thu, 9 Feb 2023 16:11:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 319GBOhm005462; Thu, 9 Feb 2023 16:11:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 319GBO0v005461; Thu, 9 Feb 2023 16:11:24 GMT (envelope-from git) Date: Thu, 9 Feb 2023 16:11:24 GMT Message-Id: <202302091611.319GBO0v005461@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: b821990ce6c7 - stable/13 - pytest: add an example test fetching test directory and ATF vars. 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: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b821990ce6c7685dbd31edbc0e74d53a0fc05a9e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=b821990ce6c7685dbd31edbc0e74d53a0fc05a9e commit b821990ce6c7685dbd31edbc0e74d53a0fc05a9e Author: Alexander V. Chernikov AuthorDate: 2023-01-25 13:55:33 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-02-09 15:46:18 +0000 pytest: add an example test fetching test directory and ATF vars. MFC after: 2 weeks (cherry picked from commit 864ea9abfb98493a157dc17be17c428080843bdd) --- tests/examples/test_examples.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/examples/test_examples.py b/tests/examples/test_examples.py index 13fdcc420f0e..fe9ae0a72cf2 100644 --- a/tests/examples/test_examples.py +++ b/tests/examples/test_examples.py @@ -49,6 +49,16 @@ class TestExampleSimple(BaseTest): def test_two(self): pass + @pytest.mark.skip(reason="comment me to run the test") + def test_get_properties(self, request): + """Shows fetching of test src dir and ATF-set variables""" + print() + print("SRC_DIR={}".format(request.fspath.dirname)) + print("ATF VARS:") + for k, v in self.atf_vars.items(): + print(" {}: {}".format(k, v)) + print() + @pytest.mark.skip(reason="comment me to run the test") @pytest.mark.require_user("unprivileged") def test_syscall_failure(self):