[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone: 7b87eec0dc2298a18531b95c1cd
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone: 7b87eec0dc2298a18531b95c1cd2d1b72986e71c |
Date: |
Mon, 11 Mar 2013 21:49:09 +0100 (CET) |
revision: 7b87eec0dc2298a18531b95c1cd2d1b72986e71c
date: 2013-03-10T01:37:21
author: address@hidden
branch: net.venge.monotone
changelog:
test/func/netsync_badhost_gives_nice_error/__driver__.lua: skip this
test in case of a misconfigured DNS gateway that resolves nonexistent
names. Fixes Debian issue #671080.
manifest:
format_version "1"
new_manifest [a832c7abe71d442381a393729c2ab562c15cf549]
old_revision [ec6ff07495216b91a7526d7af9abcde6d6ead588]
patch "test/func/netsync_badhost_gives_nice_error/__driver__.lua"
from [840813871ca60bde7d4c8829591932de494219f8]
to [c6e63fc8f098d7f4aed860f8ff9614e2b347899f]
============================================================
--- test/func/netsync_badhost_gives_nice_error/__driver__.lua 840813871ca60bde7d4c8829591932de494219f8
+++ test/func/netsync_badhost_gives_nice_error/__driver__.lua c6e63fc8f098d7f4aed860f8ff9614e2b347899f
@@ -1,4 +1,23 @@
+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()
check(mtn("pull", "nosuchhost__blahblah__asdvasoih.com", "some.pattern"), 1, false, true)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone: 7b87eec0dc2298a18531b95c1cd2d1b72986e71c,
code <=