15 lines
420 B
Plaintext
15 lines
420 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
if [ -n "$NETWORK_UNSHARE_HELPER" ]; then
|
||
|
exec "${NETWORK_UNSHARE_HELPER}" "./tests/unit.test" "$@" || exit $?
|
||
|
elif [ "${AM_BWRAPPED-}" != "yes" ]; then
|
||
|
bwrap_path="$(command -v bwrap)"
|
||
|
if [ -n "$bwrap_path" ]; then
|
||
|
exec "$bwrap_path" --unshare-net --dev-bind / / "./tests/unit.test" "$@"
|
||
|
else
|
||
|
exec "./tests/unit.test" "$@"
|
||
|
fi
|
||
|
else
|
||
|
exec "./tests/unit.test" "$@"
|
||
|
fi
|