aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2022-07-29 19:30:48 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2022-07-29 19:30:48 +0200
commit3c153481fb53feec0210d4e91021282b642294cc (patch)
tree62d845b5aa23f37db928ae8b0ef551b3d3b680b7
parenttests: try curl instead of wget for tracing dns resolution (diff)
downloadfirejail-ci_ubuntu_2204.tar.gz
firejail-ci_ubuntu_2204.tar.zst
firejail-ci_ubuntu_2204.zip
tests: disable calling curl in dns test, as systemd-resolved is used on CI runnerci_ubuntu_2204
-rwxr-xr-xtest/environment/dns.exp30
1 files changed, 16 insertions, 14 deletions
diff --git a/test/environment/dns.exp b/test/environment/dns.exp
index 7395ac110..2c00cfa1c 100755
--- a/test/environment/dns.exp
+++ b/test/environment/dns.exp
@@ -110,20 +110,22 @@ expect {
110send -- "exit\r" 110send -- "exit\r"
111sleep 1 111sleep 1
112 112
113send -- "firejail --trace --dns=208.67.222.222 -- curl --silent --output /dev/null debian.org\r" 113# test disabled, as Github CI uses systemd-resolved, which does not work
114expect { 114# properly with --dns=, so curl does not use the specified nameserver
115 timeout {puts "TESTING ERROR 6.1\n";exit} 115#send -- "firejail --trace --dns=208.67.222.222 -- curl --silent --output /dev/null debian.org\r"
116 "connect" 116#expect {
117} 117# timeout {puts "TESTING ERROR 6.1\n";exit}
118expect { 118# "connect"
119 timeout {puts "TESTING ERROR 6.2\n";exit} 119#}
120 "208.67.222.222" 120#expect {
121} 121# timeout {puts "TESTING ERROR 6.2\n";exit}
122expect { 122# "208.67.222.222"
123 timeout {puts "TESTING ERROR 6.3\n";exit} 123#}
124 "53" 124#expect {
125} 125# timeout {puts "TESTING ERROR 6.3\n";exit}
126after 100 126# "53"
127#}
128#after 100
127 129
128send -- "exit\r" 130send -- "exit\r"
129sleep 1 131sleep 1