BUGFIX: emulator compared parameter with value

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-27 00:02:04 +02:00
parent d5df740f17
commit df84480fcc

View file

@ -105,11 +105,11 @@ def emulator(argv):
sys.exit(1)
else:
param_fd = open(file, "r")
param_old = param_fd.readlines()
value_old = param_fd.readlines()
param_fd.close()
if(param_old != param):
print("Parameter " + param + " differs: " + " ".join(param_old) + " vs. " + param)
if(value_old != value):
print("Parameter " + param + " differs: " + " ".join(value_old) + " vs. " + value)
print("Sources: " + " ".join(old_object_source) + " and " + object_source)
sys.exit(1)
else: