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:
parent
229bb6931b
commit
8173bafcd6
1 changed files with 3 additions and 3 deletions
|
@ -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=$?
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue