1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-02-24 15:56:25 -05:00

Update tests, for cmd.

This commit is contained in:
Dave Davenport 2014-08-30 20:53:35 +02:00
parent 229bb6931b
commit 8173bafcd6

View file

@ -1,10 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
XPID= XPID=
DISPLAY=":0"
function create_fake_x ( ) function create_fake_x ( )
{ {
DISPLAY=":$1" export DISPLAY=":$1"
echo "Starting fake X: ${DISPLAY}" echo "Starting fake X: ${DISPLAY}"
Xvfb ${DISPLAY} & Xvfb ${DISPLAY} &
XPID=$! XPID=$!
@ -23,10 +22,11 @@ function destroy_fake_x ( )
if [ -n "$3" ] if [ -n "$3" ]
then then
PATH=$3:$PATH export PATH=$3:$PATH
fi fi
create_fake_x "$1" create_fake_x "$1"
echo "$DISPLAY"
$2 $2
RES=$? RES=$?