fix usage of set.union() to make test dependenceis work from CLI. set.union() does not mutate the set, it returns a new one. also throw in a sorted() call to ensure testability.
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2366 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/job.py b/cli/job.py
index 359d1db..e34d5ab 100755
--- a/cli/job.py
+++ b/cli/job.py
@@ -378,7 +378,7 @@
# Get the union of the 2 sets of dependencies
deps = set(self.data['dependencies'])
- deps.union(cf_info['dependencies'])
+ deps = sorted(deps.union(cf_info['dependencies']))
self.data['dependencies'] = list(deps)
socket.setdefaulttimeout(topic_common.LIST_SOCKET_TIMEOUT)