goofy: correctly receive new return value of BuildAllTestLists

BuildAllTestLists now returns a tuple, test_lists and failed_files.
goofy/invocation.py and tools/factory.py didn't reflect the change.
This CL fix this bug.

TEST=make test, manual test
BUG=None

Change-Id: I20ec89b99c1c96d0c68ab48121a4b2e83c2ab49c
Reviewed-on: https://chromium-review.googlesource.com/329440
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Joel Kitching <kitching@chromium.org>
diff --git a/py/goofy/invocation.py b/py/goofy/invocation.py
index aeefa44..2ed545a 100755
--- a/py/goofy/invocation.py
+++ b/py/goofy/invocation.py
@@ -171,7 +171,7 @@
       # It's a path pointing to an old-style test list; use it.
       return factory.read_test_list(self.test_list)
     else:
-      all_test_lists = BuildAllTestLists(
+      all_test_lists, _ = BuildAllTestLists(
           force_generic=(self.automation_mode is not None))
       test_list = all_test_lists[self.test_list]
       if isinstance(test_list, OldStyleTestList):
diff --git a/py/tools/factory.py b/py/tools/factory.py
index 52c1204..634bae2 100755
--- a/py/tools/factory.py
+++ b/py/tools/factory.py
@@ -314,7 +314,7 @@
       print test_lists.GetActiveTestListId()
 
     if self.args.list:
-      all_test_lists = test_lists.BuildAllTestLists(force_generic=True)
+      all_test_lists, _ = test_lists.BuildAllTestLists(force_generic=True)
       active_id = test_lists.GetActiveTestListId()
 
       line_format = '%-8s %-20s %s'