mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Partial revert of 23469bbe3b. When running tests in a GitHub action,
we do not want to run as host root user. Therefore, restore podman as
the default runner, but make sure to prefer docker when attaching to
the host network namespace.
21 lines
431 B
Bash
Executable File
21 lines
431 B
Bash
Executable File
#!/bin/sh
|
|
# Enter shell in container running Infamy
|
|
|
|
testdir=$(dirname "$(readlink -f "$0")")
|
|
. "$testdir/.env"
|
|
|
|
usage()
|
|
{
|
|
echo "Usage:"
|
|
echo " shell [SYSTEM]"
|
|
echo "Example:"
|
|
echo " shell # Open shell in infamy0"
|
|
echo " shell infamy2 # Open shell in infamy2"
|
|
exit 1
|
|
}
|
|
|
|
sys=$1
|
|
[ -n "$sys" ] || sys=$(infamy)
|
|
|
|
$(runner) exec -it --workdir "$ixdir/test" "$sys" ./env -C sh
|