monotone

monotone Commit Details

Date:2013-03-15 20:44:21 (6 years 3 months ago)
Author:Markus Wanner
Branch:org.debian.monotone
Commit:3748d25bd05926a80129890aa867c8c63cf33c15
Parents: f9a26ba1748a5b6ca59cccf7e71c132c0933a85b
Message:Add work-around to skip a test in case we are behind a broken DNS

gateway. Closes: #671080.
Changes:
Apatches/06-broken-dns-work-around.diff (full)
Mchangelog (1 diff)
Mpatches/series (1 diff)

File differences

changelog
55
66
77
8
9
810
911
1012
patches/05-hurd-compilation-fix.diff. Closes: #624779.
* Add Brazilian Portuguese translation by Adriano Rafael Gomes.
Closes: #693378.
* Add work-around to skip a test in case we are behind a broken DNS
gateway. Closes: #671080.
* Standards-Version: 3.9.4 (no changes required).
* Drop build dependency on quilt.
patches/06-broken-dns-work-around.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: work-around to skip a test in case we are behind a broken DNS
Checks a domain that's supposed to be inexistent and skips a test that
fails in case a broken DNS tries to be helpful and resolves such an
inexistent name.
Bug-Debian: http://bugs.debian.org/671080
Origin: upstream, commit: 7b87eec0dc2298a18531b95c1cd2d1b72986e71c
--- a/test/func/netsync_badhost_gives_nice_error/__driver__.lua
+++ b/test/func/netsync_badhost_gives_nice_error/__driver__.lua
@@ -1,3 +1,22 @@
+skip_if(not existsonpath("host"))
+
+-- We punt in case of misconfigured DNS servers that resolve inexistant
+-- domain names. (Don't even think about buying that domain name!)
+L("\nChecking DNS resolution for nosuchhost__blahblah__asdvasoih.com: ")
+local pid = spawn_redirected("", "host-lookup.out", "host-lookup.err",
+ "host", "nosuchhost__blahblah__asdvasoih.com")
+local ec = wait(pid)
+
+if ec == 0 then
+ L("failed\n",
+ "\n",
+ "Your DNS resolver is trying to be helpful by resolving names that do\n",
+ "not exist. `host nosuchhost__blahblah__asdvasoih.com` returned:\n\n")
+ log_file_contents("host-lookup.out")
+ skip_if(true)
+else
+ L("good\n")
+end
mtn_setup()
patches/series
44
55
66
7
78
89
03-url_escaping.diff
04-botan-1.10-adaption.diff
05-hurd-compilation-fix.diff
06-broken-dns-work-around.diff
10-mtn-ignore-syntax-error-test.diff
90-stacktrace-on-crash.diff

Archive Download the corresponding diff file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status