Skip to content

Commit d483056

Browse files
authored
Merge pull request #210 from sebastian-carpenter/x11vnc-timeout-error
fixed timeout errors for x11vnc workflow
2 parents 43f59a3 + 6ae4739 commit d483056

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/scripts/x11vnc/test_x11vnc.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ fi
5252

5353
echo -e "\n\nTesting -sslCertInfo\n" >> x11vnc_test.log
5454

55-
OPENSSL_CONF='' OPENSSL_MODULES='' timeout 1 x11vnc -sslCertInfo ca-dir/server-wolf.pem > cert_info_ossl.txt
56-
timeout 1 x11vnc -sslCertInfo ca-dir/server-wolf.pem > cert_info.txt
55+
OPENSSL_CONF='' OPENSSL_MODULES='' timeout 5 x11vnc -sslCertInfo ca-dir/server-wolf.pem > cert_info_ossl.txt
56+
timeout 5 x11vnc -sslCertInfo ca-dir/server-wolf.pem > cert_info.txt
5757

5858
if [ $? -eq 0 ] && diff -y cert_info.txt cert_info_ossl.txt >> x11vnc_test.log 2>> x11vnc_test.log \
5959
&& cat cert_info.txt >> x11vnc_test.log
@@ -93,7 +93,7 @@ echo -e "\n\nTesting -ssl handshake, authentication, initialization...\n" >> x11
9393
PORT=`x11vnc -ssl TMP -display :0 -localhost -bg -o server.log`
9494
PORT=`echo "$PORT" | grep -m 1 "PORT=" | sed -e 's/PORT=//'`
9595

96-
timeout 10 vncviewer -GnuTLSPriority=LEGACY -DesktopSize=0 -display :0 -log *:stderr:100 localhost::$PORT 2> client.log
96+
timeout 15 vncviewer -GnuTLSPriority=LEGACY -DesktopSize=0 -display :0 -log *:stderr:100 localhost::$PORT 2> client.log
9797

9898
if grep -Eq "SSL: handshake with helper process[[0-9]+] succeeded" server.log \
9999
&& grep -q "CConnection: Authentication success" client.log \
@@ -116,7 +116,7 @@ x11vnc -storepasswd wolfprov passwd 2>> x11vnc_test.log
116116
PORT=`x11vnc -ssl TMP -display :0 -localhost -bg -o server.log -rfbauth passwd`
117117
PORT=`echo "$PORT" | grep -m 1 "PORT=" | sed -e 's/PORT=//'`
118118

119-
timeout 10 vncviewer -GnuTLSPriority=LEGACY -DesktopSize=0 -display :0 -passwd passwd -log *:stderr:100 localhost::$PORT 2> client.log
119+
timeout 15 vncviewer -GnuTLSPriority=LEGACY -DesktopSize=0 -display :0 -passwd passwd -log *:stderr:100 localhost::$PORT 2> client.log
120120

121121
if grep -Eq "SSL: handshake with helper process[[0-9]+] succeeded" server.log \
122122
&& grep -q "CConnection: Authentication success" client.log \

.github/scripts/x11vnc/x11vnc_sslenckey.exp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/expect
22

3-
set timeout 1
3+
set timeout 5
44

5+
# encrypt the server certificate key
56
spawn x11vnc -sslEncKey ca-dir/server-wolf.pem
67

78
sleep 1

.github/scripts/x11vnc/x11vnc_sslgenca.exp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/expect
22

3-
set timeout 1
3+
set timeout 5
44

5+
# generate a certificate authority
56
spawn x11vnc -sslGenCA ca-dir
67

78
sleep 1

.github/scripts/x11vnc/x11vnc_sslgencert_client.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/expect
22

3-
set timeout 1
3+
set timeout 5
44

55
# generate a cert for the client
66
spawn x11vnc -ssldir ca-dir -sslGenCert client wolf

.github/scripts/x11vnc/x11vnc_sslgencert_server.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/expect
22

3-
set timeout 1
3+
set timeout 5
44

55
# generate a cert for the server
66
spawn x11vnc -ssldir ca-dir -sslGenCert server wolf

0 commit comments

Comments
 (0)