From 1967bdda14512068e09322a212489da13f3be438 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 9 Aug 2026 12:40:50 +0300 Subject: [PATCH] python-pytest-forked: add test script Add a CI test.sh exercising basic package functionality. Signed-off-by: Alexandru Ardelean --- lang/python/python-pytest-forked/test.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 lang/python/python-pytest-forked/test.sh diff --git a/lang/python/python-pytest-forked/test.sh b/lang/python/python-pytest-forked/test.sh new file mode 100755 index 0000000000..b714a54e93 --- /dev/null +++ b/lang/python/python-pytest-forked/test.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +[ "$1" = python3-pytest-forked ] || exit 0 + +# The plugin must register its --forked option with the installed pytest, +# which proves both the plugin and its pytest dependency import cleanly. +if ! python3 -m pytest --help 2>&1 | grep -- "--forked"; then + echo "FAIL: pytest-forked did not register the --forked option" + exit 1 +fi