Commit 8a802eb4 authored by Sebastien Robin's avatar Sebastien Robin

erp5testnode: fixed wrong usage of sets

parent 0ab7d0ea
......@@ -61,7 +61,8 @@ class TestNode(object):
config = self.config
installed_reference_set = set(os.listdir(config['slapos_directory']))
wished_reference_set = set([x['test_suite_reference'] for x in test_suite_data])
to_remove_reference_set = installed_reference_set.discard - wished_reference_set
to_remove_reference_set = installed_reference_set.difference(
wished_reference_set)
for y in to_remove_reference_set:
fpath = os.path.join(config['slapos_directory'],y)
if os.path.isdir(fpath):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment