Skip to content

Commit

Permalink
tests: disable calling curl in dns test, as systemd-resolved is used …
Browse files Browse the repository at this point in the history
…on CI runner
  • Loading branch information
reinerh committed Jul 29, 2022
1 parent 52edb20 commit 3c15348
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions test/environment/dns.exp
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,22 @@ expect {
send -- "exit\r"
sleep 1

send -- "firejail --trace --dns=208.67.222.222 -- curl --silent --output /dev/null debian.org\r"
expect {
timeout {puts "TESTING ERROR 6.1\n";exit}
"connect"
}
expect {
timeout {puts "TESTING ERROR 6.2\n";exit}
"208.67.222.222"
}
expect {
timeout {puts "TESTING ERROR 6.3\n";exit}
"53"
}
after 100
# test disabled, as Github CI uses systemd-resolved, which does not work
# properly with --dns=, so curl does not use the specified nameserver
#send -- "firejail --trace --dns=208.67.222.222 -- curl --silent --output /dev/null debian.org\r"
#expect {
# timeout {puts "TESTING ERROR 6.1\n";exit}
# "connect"
#}
#expect {
# timeout {puts "TESTING ERROR 6.2\n";exit}
# "208.67.222.222"
#}
#expect {
# timeout {puts "TESTING ERROR 6.3\n";exit}
# "53"
#}
#after 100

send -- "exit\r"
sleep 1
Expand Down

0 comments on commit 3c15348

Please sign in to comment.