Visual Studio Code, rebuilt in Rust
Rust
fix(ci): wait up to 60 s for Xvfb in the Linux smoke run (#114)
Artur Roke36dd89908c2
diff --git a/port/tools/linux/smoke b/port/tools/linux/smokeindex 78846fa088a..64a92409dff 100755--- a/port/tools/linux/smoke+++ b/port/tools/linux/smoke@@ -16,8 +16,14 @@ if [[ $(uname) == Linux ]]; thentrap 'kill %1; rm -rf "$dir"' EXIT# -displayfd picks a free display and writes its number once Xvfb accepts clients; the app exits with# "Failed to initialize X11 client" when it starts before that.- Xvfb -displayfd 1 -screen 0 1600x1000x24 >"$dir/display" 2>/dev/null &- for _ in $(seq 100); do [ -s "$dir/display" ] && break; sleep 0.1; done+ # A loaded CI runner took more than 10 s to start Xvfb, leaving DISPLAY=":".+ Xvfb -displayfd 1 -screen 0 1600x1000x24 >"$dir/display" 2>"$dir/xvfb.log" &+ for _ in $(seq 600); do [ -s "$dir/display" ] && break; sleep 0.1; done+ if [[ ! -s "$dir/display" ]]; then+ cat "$dir/xvfb.log"+ echo "linux smoke: Xvfb gave no display in 60 s"+ exit 1+ fiexport DISPLAY=:$(cat "$dir/display")fi