From 0ac709ab2995f177339df5a3ee88ab2a1399fa71 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Sat, 11 Nov 2023 19:57:24 +0000 Subject: [PATCH] Fix: Fix test for `srcds/cs2` for CI environments Fixes bug in #153 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 8e794bd7..ad5be5cf 100755 --- a/build.sh +++ b/build.sh @@ -279,7 +279,7 @@ if [ ! "$NO_TEST" = 'true' ]; then i=$(($i + 1)) done docker logs "$CONTAINER_ID" - docker exec -it "$CONTAINER_ID" bash -c 'printf "\\xff\\xff\\xff\\xffTSource Engine Query\\x00" | nc -w1 -u 127.0.0.1 27015 | tr "[:cntrl:]" "\\n"' | tee "$TEST_DIR/test" + docker exec "$CONTAINER_ID" bash -c 'printf "\\xff\\xff\\xff\\xffTSource Engine Query\\x00" | nc -w1 -u 127.0.0.1 27015 | tr "[:cntrl:]" "\\n"' | tee "$TEST_DIR/test" docker rm -f "$CONTAINER_ID" > /dev/null else time docker run -t --rm "$GAME_IMAGE" "$GAME_BIN -game $GAME +version +exit" | tee "$TEST_DIR/test"