If the user passes a path to the package tests, don't auto add them

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2024-01-15 18:07:28 +00:00 committed by Pedro Algarvio
parent d891eedbd1
commit 0e3f5ee41a

View file

@ -1886,6 +1886,11 @@ def ci_test_onedir_pkgs(session):
chunk = session.posargs.pop(0)
cmd_args = chunks[chunk]
for arg in session.posargs:
if arg.startswith("tests/pytests/pkg/"):
# The user is passing test paths
cmd_args.pop()
break
if IS_LINUX:
# Fetch the toolchain