Adding a function pick_random_friend ()
[oweals/gnunet.git] / src / dht / test_dht_tools.py.in
index 186c39b96d20a6cdd6353f20e93d7f00d9f4b220..0f48d7f76d92b1cfeea1afcd1d2d8ae6868db24c 100644 (file)
@@ -14,12 +14,10 @@ else:
   tmp = "/tmp"
 
 if os.name == 'nt':
-  pif = 'gnunet-peerinfo.exe'
-  get = 'gnunet-dht-get.exe'
-  put = 'gnunet-dht-put.exe'
+  get = './gnunet-dht-get.exe'
+  put = './gnunet-dht-put.exe'
   arm = 'gnunet-arm.exe'
 else:
-  pif = 'gnunet-peerinfo'
   get = './gnunet-dht-get'
   put = './gnunet-dht-put'
   arm = 'gnunet-arm'
@@ -27,7 +25,6 @@ else:
 tf, tempcfg = tempfile.mkstemp (prefix='test_dht_api_peer1.')
 os.close (tf)
 
-run_pif = [pif, '-c', tempcfg, '-sq']
 run_get = [get, '-c', tempcfg]
 run_put = [put, '-c', tempcfg]
 run_arm = [arm, '-c', tempcfg]
@@ -69,9 +66,6 @@ def r_something (to_run, extra_args, failer = None, normal = True, **kw):
 def r_arm (extra_args, **kw):
   return r_something (run_arm, extra_args, **kw)
 
-def r_pif (extra_args, **kw):
-  return r_something (run_pif, extra_args, **kw)
-
 def r_get (extra_args, **kw):
   return r_something (run_get, extra_args, **kw)
 
@@ -98,10 +92,6 @@ def print_only_failer (command, rc, stdo, stde, normal):
 
 shutil.copyfile ('test_dht_api_peer1.conf', tempcfg)
 
-print ("TEST: Generating hostkey...", end='')
-r_pif ([], failer = print_only_failer)
-print ("PASS")
-
 print ("TEST: Starting ARM...", end='')
 r_arm (['-s'], failer = end_arm_failer, want_stdo = False, want_stde = False)
 print ("PASS")