Skip to content

Instantly share code, notes, and snippets.

View tullmann's full-sized avatar

Pat Tullmann tullmann

View GitHub Profile
@tullmann
tullmann / bb-xvfb
Created November 13, 2015 19:00
Wrapper for XVFB with chrome testing work-arounds
#!/bin/sh
#
# bb-xvfb <command> <and> <its> <arguments...>
#
# Wrapper for XVFB. Capture XVFB logs where we can see them. Dump
# XVFB framebuffer where can we can see it. Use a standard display size
# and dpi for all of our XVFB-wrapped tests.
#
# Note: "32" is not a valid depth for xvfb: https://bugs.freedesktop.org/show_bug.cgi?id=17453 (from 2008)
@tullmann
tullmann / waitForX
Created November 13, 2015 19:02
wait for an X11 server to be ready (good for running under XVFB when testing chrome)
#!/bin/bash
#
# waitForX [<cmd> [<arg> ...]]
#
# Wait for X Server to be ready, then run the given command once X server
# is ready. (Or simply return if no command is provided.)
#
function LOG {
echo $(date -R): $0: $*