13 lines
467 B
Bash
Raw Normal View History

#!/bin/sh -ex
wd='/work'
podman run \
--cap-add CAP_NET_ADMIN \
--pull=always \
--rm \
-it \
-v .:"$wd" \
registry.opensuse.org/home/crameleon/containers/containers/crameleon/pytest-nftables:latest \
env NFT-API-CONFIG="$wd"/tests/config.yaml PYTHONPATH="$wd/nft_http_api_client:$wd/nft_http_api_server" pytest --pdb --pdbcls=IPython.terminal.debugger:Pdb -rA -s -v -x "$wd"/tests