diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-16 16:28:47 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-16 16:28:47 +0000 |
commit | e577a22606d48042fbf970f1585f81e083ea7e56 (patch) | |
tree | 245a01de072f09ca008281cf84acc9640c333368 /src | |
parent | 6a595ff6a8277dc716e268c2f3f389d60b0d5471 (diff) | |
download | gnunet-e577a22606d48042fbf970f1585f81e083ea7e56.tar.gz gnunet-e577a22606d48042fbf970f1585f81e083ea7e56.zip |
- peer id in statistics
Diffstat (limited to 'src')
-rw-r--r-- | src/integration-tests/gnunet_testing.py.in | 6 |
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): | |||
135 | fail = "" | 135 | fail = "" |
136 | op = " == " | 136 | op = " == " |
137 | if ((self.fulfilled == False) and (failed_only == True)): | 137 | if ((self.fulfilled == False) and (failed_only == True)): |
138 | 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 | 138 | 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 |
139 | elif (failed_only == False): | 139 | elif (failed_only == False): |
140 | 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 | 140 | 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 |
141 | return self.fulfilled | 141 | return self.fulfilled |
142 | 142 | ||
143 | class Test: | 143 | class Test: |
@@ -173,7 +173,7 @@ class Peer: | |||
173 | def __init__(self, test, cfg_file): | 173 | def __init__(self, test, cfg_file): |
174 | if (False == os.path.isfile(cfg_file)): | 174 | if (False == os.path.isfile(cfg_file)): |
175 | print ("Peer cfg " + cfg_file + ": FILE NOT FOUND") | 175 | print ("Peer cfg " + cfg_file + ": FILE NOT FOUND") |
176 | self.id = "" | 176 | self.id = "<NaN>" |
177 | self.test = test | 177 | self.test = test |
178 | self.started = False | 178 | self.started = False |
179 | self.cfg = cfg_file | 179 | self.cfg = cfg_file |