From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1569541-garchives=archives.gentoo.org@lists.gentoo.org>
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 5F5A9158089
	for <garchives@archives.gentoo.org>; Sat, 11 Nov 2023 02:55:37 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 570382BC021;
	Sat, 11 Nov 2023 02:55:36 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 3B6302BC021
	for <gentoo-commits@lists.gentoo.org>; Sat, 11 Nov 2023 02:55:36 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 4AAD1335CD2
	for <gentoo-commits@lists.gentoo.org>; Sat, 11 Nov 2023 02:55:35 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 461011368
	for <gentoo-commits@lists.gentoo.org>; Sat, 11 Nov 2023 02:55:32 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
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" <sam@gentoo.org>
Message-ID: <1699671329.720d733e76768a6b0afaf65a602427247f9257b4.sam@gentoo>
Subject: [gentoo-commits] proj/portage:master commit in: /
X-VCS-Repository: proj/portage
X-VCS-Files: NEWS pyproject.toml
X-VCS-Directories: /
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 720d733e76768a6b0afaf65a602427247f9257b4
X-VCS-Branch: master
Date: Sat, 11 Nov 2023 02:55:32 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 53d59dc5-a504-41c6-a2b7-b25635ede9b9
X-Archives-Hash: 6bf91ba92e9f23a46cc03d86048e103e

commit:     720d733e76768a6b0afaf65a602427247f9257b4
Author:     David Palao <david.palao <AT> gmail <DOT> com>
AuthorDate: Mon Oct 30 15:01:43 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 11 02:55:29 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=720d733e

pyproject.toml, NEWS: declare pytest markers.

Declare pytest markers. They can be used to select what tests
(not) to run, e.g.:

  pytest -m ft  # to select tests marked with"ft"
  pytest -m "not ft"  # to skip tests marked with "ft"

to list the markers:

  pytest --markers

Signed-off-by: David Palao <david.palao <AT> gmail.com>
Closes: https://github.com/gentoo/portage/pull/1170
Signed-off-by: Sam James <sam <AT> gentoo.org>

 NEWS           | 3 +++
 pyproject.toml | 7 +++++++
 2 files changed, 10 insertions(+)

diff --git a/NEWS b/NEWS
index 362266369f..f1305744fb 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,9 @@ Features:
 Bug fixes:
 * ebuild: Add missing newlines in error messages.
 
+Cleanups:
+* Add pytest markers: ft, unit and stress.
+
 portage-3.0.55 (2023-11-06)
 --------------
 

diff --git a/pyproject.toml b/pyproject.toml
index eb725e1c54..4ba455525f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -33,3 +33,10 @@ gpkg-sign = 'portage.util.bin_entry_point:bin_entry_point'
 portageq = 'portage.util.bin_entry_point:bin_entry_point'
 quickpkg = 'portage.util.bin_entry_point:bin_entry_point'
 regenworld = 'portage.util.bin_entry_point:bin_entry_point'
+
+[tool.pytest.ini_options]
+markers = [
+    "ft: functional tests (select: '-m ft'; deselect with '-m \"not ft\"')",
+    "stress: stress tests (select: '-m stress'; deselect with '-m \"not stress\"')",
+    "unit: unit tests (select: '-m unit'; deselect with '-m \"not unit\"')",
+]