diff options
-rw-r--r-- | selftest/knownfail.d/usage | 1 | ||||
-rwxr-xr-x | selftest/target/dns_hub.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/selftest/knownfail.d/usage b/selftest/knownfail.d/usage index 3c526f32f22..731eb89e671 100644 --- a/selftest/knownfail.d/usage +++ b/selftest/knownfail.d/usage @@ -1,7 +1,6 @@ samba.tests.usage.samba.tests.usage.PythonScriptUsageTests.test_chgtdcpass.none. samba.tests.usage.samba.tests.usage.PythonScriptUsageTests.test_compare_cc_results_py.none. samba.tests.usage.samba.tests.usage.PythonScriptUsageTests.test_demodirsync_py.none. -samba.tests.usage.samba.tests.usage.PythonScriptUsageTests.test_dns_hub_py.none. samba.tests.usage.samba.tests.usage.PythonScriptUsageTests.test_findprovisionusnranges.none. samba.tests.usage.samba.tests.usage.PythonScriptUsageTests.test_get_descriptors.none. samba.tests.usage.samba.tests.usage.PythonScriptUsageTests.test_mymachinepw.none. diff --git a/selftest/target/dns_hub.py b/selftest/target/dns_hub.py index 49fbeff7b99..9360f9136fc 100755 --- a/selftest/target/dns_hub.py +++ b/selftest/target/dns_hub.py @@ -163,6 +163,10 @@ class server_thread(threading.Thread): def main(): + if len(sys.argv) < 4: + print("Usage: dns_hub.py TIMEOUT HOST MAPPING") + sys.exit(1) + timeout = int(sys.argv[1]) * 1000 timeout = min(timeout, 2**31 - 1) # poll with 32-bit int can't take more host = sys.argv[2] |