mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 03:37:43 +04:00
python-pytest-forked: add test script
Add a CI test.sh exercising basic package functionality. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
1 parent
5b731fd697
commit
1967bdda14
1 file changed
+10
Executable
+10
@@ -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
|
||||
Reference in new issue
Block a user