summaryrefslogtreecommitdiff
path: root/src/integration-tests/gnunet_testing.py.in
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-02-16 16:28:47 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-02-16 16:28:47 +0000
commite577a22606d48042fbf970f1585f81e083ea7e56 (patch)
tree245a01de072f09ca008281cf84acc9640c333368 /src/integration-tests/gnunet_testing.py.in
parent6a595ff6a8277dc716e268c2f3f389d60b0d5471 (diff)
- peer id in statistics
Diffstat (limited to 'src/integration-tests/gnunet_testing.py.in')
-rw-r--r--src/integration-tests/gnunet_testing.py.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/integration-tests/gnunet_testing.py.in b/src/integration-tests/gnunet_testing.py.in
index cbafb0e31..79cbfe9a2 100644
--- a/src/integration-tests/gnunet_testing.py.in
+++ b/src/integration-tests/gnunet_testing.py.in
@@ -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