blob: b714a54e93395311aa8c0a1f2c0acb567c8cf8fa (
plain)
1
2
3
4
5
6
7
8
9
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
|