mirror of https://github.com/OpenVidu/openvidu.git
19 lines
447 B
Bash
19 lines
447 B
Bash
![]() |
#!/bin/bash
|
||
|
set -eu -o pipefail
|
||
|
|
||
|
# Iniciar XVFB
|
||
|
export DISPLAY_NUM=99
|
||
|
export DISPLAY=":${DISPLAY_NUM}"
|
||
|
|
||
|
# Esperar hasta que XVFB esté listo
|
||
|
while ! xdpyinfo -display "${DISPLAY}" >/dev/null 2>&1; do
|
||
|
DISPLAY_NUM=$((DISPLAY_NUM+1))
|
||
|
DISPLAY=":${DISPLAY_NUM}"
|
||
|
echo "Trying to launch XVFB on display ${DISPLAY}..."
|
||
|
/usr/bin/Xvfb "${DISPLAY}" -screen 0 1280x720x16 &
|
||
|
sleep 2s
|
||
|
done
|
||
|
|
||
|
echo "Running tests... Please wait..."
|
||
|
|
||
|
python3 main.py "$@"
|