[autotest] Fold pool into extra_deps

Thats all its used for

BUG=chromium:672348
TEST=None

Change-Id: I11dace5df8f820f1c810b1052aa7cc1568ba431d
Reviewed-on: https://chromium-review.googlesource.com/448027
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/server/cros/dynamic_suite/suite.py b/server/cros/dynamic_suite/suite.py
index 8e11911..6ef111d 100644
--- a/server/cros/dynamic_suite/suite.py
+++ b/server/cros/dynamic_suite/suite.py
@@ -307,7 +307,6 @@
             builds,
             board,
             afe=None,
-            pool=None,
             max_runtime_mins=24*60,
             timeout_mins=24*60,
             suite_job_id=None,
@@ -323,8 +322,6 @@
         @param builds: the builds on which we're running this suite.
         @param board: the board on which we're running this suite.
         @param afe: an instance of AFE as defined in server/frontend.py.
-        @param pool: Specify the pool of machines to use for scheduling
-                purposes.
         @param max_runtime_mins: Maximum suite runtime, in minutes.
         @param timeout_mins: Maximum job lifetime, in minutes.
         @param suite_job_id: Job id that will act as parent id to all sub jobs.
@@ -347,7 +344,6 @@
         self._afe = afe or frontend_wrappers.RetryingAFE(timeout_min=30,
                                                          delay_sec=10,
                                                          debug=False)
-        self._pool = pool
         self._max_runtime_mins = max_runtime_mins
         self._timeout_mins = timeout_mins
         self._suite_job_id = suite_job_id
@@ -413,8 +409,6 @@
         else:
             job_deps = list(test.dependencies)
         job_deps.extend(self._extra_deps)
-        if self._pool:
-            job_deps.append(self._pool)
         job_deps.append(self._board)
         return job_deps
 
@@ -1050,12 +1044,13 @@
 
         if extra_deps is None:
             extra_deps = []
+        if pool:
+            extra_deps.append(pool)
         self._job_creator = _SuiteChildJobCreator(
             tag=tag,
             builds=builds,
             board=board,
             afe=afe,
-            pool=pool,
             max_runtime_mins=max_runtime_mins,
             timeout_mins=timeout_mins,
             suite_job_id=suite_job_id,