fix output, compare string with string not string with list

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/feature_files_export
Nico Schottelius 14 years ago
parent ccbd0f1d84
commit 272b8722c1
  1. 6
      lib/cdist/emulator.py
  2. 2
      test.py

@ -110,12 +110,12 @@ def run(argv):
value_old = param_fd.readlines()
param_fd.close()
if(value_old != value):
raise cdist.Error("Parameter + \"" + param +
if(value_old[0] != value):
raise cdist.Error("Parameter\"" + param +
"\" differs: " + " ".join(value_old) + " vs. " +
value +
"\nSource = " + " ".join(old_object_source)
+ " new =" + object_source)
+ " new = " + object_source)
else:
param_fd = open(file, "w")
param_fd.writelines(value)

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

Loading…
Cancel
Save