Skip to content

Commit

Permalink
Fix: Fix test for srcds/cs2 for CI environments (#155)
Browse files Browse the repository at this point in the history
Fixes bug in #153
  • Loading branch information
leojonathanoh authored Nov 11, 2023
1 parent 4505271 commit a4e51db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a4e51db

Please sign in to comment.