fix output, compare string with string not string with list

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-27 16:10:53 +02:00
parent ccbd0f1d84
commit 272b8722c1
2 changed files with 5 additions and 3 deletions

View file

@ -110,8 +110,8 @@ def run(argv):
value_old = param_fd.readlines() value_old = param_fd.readlines()
param_fd.close() param_fd.close()
if(value_old != value): if(value_old[0] != value):
raise cdist.Error("Parameter + \"" + param + raise cdist.Error("Parameter\"" + param +
"\" differs: " + " ".join(value_old) + " vs. " + "\" differs: " + " ".join(value_old) + " vs. " +
value + value +
"\nSource = " + " ".join(old_object_source) "\nSource = " + " ".join(old_object_source)

View file

@ -139,7 +139,9 @@ class Config(unittest.TestCase):
manifest_fd.close() manifest_fd.close()
try: try:
print("a")
self.config.run_initial_manifest() self.config.run_initial_manifest()
print("b")
except cdist.Error: except cdist.Error:
failed = True failed = True
else: else: