Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (13 sloc) 0.615 kB
#!/bin/bash
# Copyright 2012 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
active_displays=$(ls /tmp/.X*-lock | sed 's/\/tmp\/\.X\(.*\)-lock/\1/')
last_active_display=$(echo "$active_displays" | sort -r | head -1)
new_display=$(echo "$last_active_display + 1" | bc)
xephyr_command="Xephyr :$new_display"
$xephyr_command 2> /dev/null &
DISPLAY=:$new_display make test
my_xephyr_pid=$(ps -A -o pid,cmd | grep Xephyr | \
sed -n 's/[[:space:]]*\([0-9]*\) Xephyr :'"$new_display"'$/\1/p;')
kill -9 $my_xephyr_pid
Jump to Line
Something went wrong with that request. Please try again.