- peer id in statistics
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 16 Feb 2012 16:28:47 +0000 (16:28 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 16 Feb 2012 16:28:47 +0000 (16:28 +0000)
src/integration-tests/gnunet_testing.py.in

index cbafb0e31fb6bb4f59eefda50b3b2624ae0b974b..79cbfe9a2dfe53dddb287abd02271b0ed234e6ef 100644 (file)
@@ -135,9 +135,9 @@ class StatisticsCondition (Condition):
             fail = ""
             op = " == "
         if ((self.fulfilled == False) and (failed_only == True)):
-            print self.peer.cfg + " " + str(self.type) + ' condition in subsystem "' + self.subsystem.ljust(12) +'" : "' + self.name.ljust(30) +'" : (expected/real value) ' + str(self.value) + op + res + fail
+            print self.peer.id[:4] + " " +self.peer.cfg + " " +  str(self.type) + ' condition in subsystem "' + self.subsystem.ljust(12) +'" : "' + self.name.ljust(30) +'" : (expected/real value) ' + str(self.value) + op + res + fail
         elif (failed_only == False): 
-            print self.peer.cfg + " " + str(self.type) + ' condition in subsystem "' + self.subsystem.ljust(12) +'" : "' + self.name.ljust(30) +'" : (expected/real value) ' + str(self.value) + op + res + fail 
+            print self.peer.id[:4] + " " +self.peer.cfg + " " +  str(self.type) + ' condition in subsystem "' + self.subsystem.ljust(12) +'" : "' + self.name.ljust(30) +'" : (expected/real value) ' + str(self.value) + op + res + fail 
         return self.fulfilled    
         
 class Test:
@@ -173,7 +173,7 @@ class Peer:
     def __init__(self, test, cfg_file):
         if (False == os.path.isfile(cfg_file)):
             print ("Peer cfg " + cfg_file + ": FILE NOT FOUND")
-        self.id = ""
+        self.id = "<NaN>"
         self.test = test
         self.started = False
         self.cfg = cfg_file