tmp = "/tmp"
if os.name == 'nt':
- st = 'gnunet-statistics.exe'
+ st = './gnunet-statistics.exe'
arm = 'gnunet-arm.exe'
else:
- st = 'gnunet-statistics'
+ st = './gnunet-statistics'
arm = 'gnunet-arm'
run_st = [st, '-c', 'test_statistics_api_data.conf']
run_arm += [debug.split (' ')]
def cleanup ():
- shutil.rmtree (os.path.join (tmp, "test-gnunetd-statistics"), True)
+ shutil.rmtree (os.path.join (tmp, "test-gnunet-statistics"), True)
def sub_run (args, want_stdo = True, want_stde = False, nofail = False):
if want_stdo:
time.sleep (1)
t = r_arm (['-i', 'statistics'])
time.sleep (1)
- print ("DONE")
cleanup ()
time.sleep (1)
t = r_arm (['-i', 'statistics'], want_stdo = False)
time.sleep (1)
-print ("DONE")
print ("TEST: Bad argument checking...", end='')
-r_st (['-x'], normal = False, nofail = True, want_stdo = False)
+r_st (['-x'], normal = False, nofail = True, want_stdo = False, want_stde = True)
print ("PASS")
print ("TEST: Set value...", end='')
print ("Stopping service...")
t = r_arm (['-e'], want_stdo = False)
time.sleep (1)
-print ("DONE")
cleanup ()