mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 07:33:01 +02:00
test: drop --interactive in non-interactive docker sessions
With a self-hosted runner we get the following classic error when
calling `make test-unit`:
make[1]: Entering directory '/home/runner/_work/infix/infix/buildroot'
/home/runner/_work/infix/infix/test/env /home/runner/_work/infix/infix/test/9pm/9pm.py /home/runner/_work/infix/infix/test/case/all-repo.yaml /home/runner/_work/infix/infix/test/case/all-unit.yaml
the input device is not a TTY
make[2]: *** [/home/runner/_work/infix/infix/board/x86_64/board.mk:14: test-unit] Error 1
This patch drops interactive from all non-interactive docker sessions.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ test test-qeneth:
|
||||
$(BR2_EXTERNAL_INFIX_PATH)/test/9pm/9pm.py \
|
||||
$(INFIX_TESTS))
|
||||
test-sh test-qeneth-sh:
|
||||
$(call test-env-qeneth,/bin/sh)
|
||||
$(call test-env-qeneth,-i /bin/sh)
|
||||
|
||||
test-run: | ~/.infix-test-venv
|
||||
$(call test-env-run,\
|
||||
|
||||
@@ -104,7 +104,7 @@ name()
|
||||
containerize=yes
|
||||
[ -c /dev/kvm ] && kvm="--device=/dev/kvm"
|
||||
|
||||
while getopts "Cf:hKp:q:t:" opt; do
|
||||
while getopts "Cf:hiKp:q:t:" opt; do
|
||||
case ${opt} in
|
||||
C)
|
||||
containerize=
|
||||
@@ -115,6 +115,9 @@ while getopts "Cf:hKp:q:t:" opt; do
|
||||
h)
|
||||
usage && exit 0
|
||||
;;
|
||||
i)
|
||||
interactive="--interactive"
|
||||
;;
|
||||
K)
|
||||
kvm=
|
||||
;;
|
||||
@@ -146,7 +149,7 @@ if [ "$containerize" ]; then
|
||||
--expose 9001-9010 --publish-all \
|
||||
--hostname "$(name)" \
|
||||
--name "$(name)" \
|
||||
--interactive \
|
||||
$interactive \
|
||||
--rm \
|
||||
--security-opt seccomp=unconfined \
|
||||
--sysctl net.ipv6.conf.all.disable_ipv6=0 \
|
||||
|
||||
Reference in New Issue
Block a user