Skip to content

Commit e0a0545

Browse files
committed
Fix false match for running vnc
1 parent c0409dc commit e0a0545

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/testlib.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ function setup() {
9999
if [ "x$DISPLAY" == "x" ] ; then
100100
installVnc
101101
futureVnc=":9"
102-
if ps -aux | grep -v -e grep | grep -e "$futureVnc" ; then
102+
if ps -aux | grep -v -e grep | grep -e "vnc.*$futureVnc" ; then
103103
echo "special vncserver/vncsession seems to be running"
104-
$LOCAL_VNC -kill $futureVnc
104+
$LOCAL_VNC -kill $futureVnc || :
105105
fi
106106
$LOCAL_VNC $futureVnc << HeredocDelimiter
107107
123qwe

0 commit comments

Comments
 (0)