]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
only run the tests that are specified, regardless of dependencies
authorelijah <elijah@riseup.net>
Tue, 18 Mar 2014 07:20:58 +0000 (00:20 -0700)
committerelijah <elijah@riseup.net>
Tue, 18 Mar 2014 07:20:58 +0000 (00:20 -0700)
lib/leap_cli/config/object_list.rb

index 910e2f72495afcaddc7c2d564c9ade1e852c82b5..e975a5fe722eb0811da1f8e4aee3e5a645a80e1a 100644 (file)
@@ -182,7 +182,14 @@ module LeapCli
       end
 
       def tsort_each_child(node_name, &block)
-        self[node_name].test_dependencies.each(&block)
+        if self[node_name]
+          self[node_name].test_dependencies.each do |test_me_first|
+            if self[test_me_first] # TODO: in the future, allow for ability to optionally pull in all dependencies.
+                                   # not just the ones that pass the node filter.
+              yield(test_me_first)
+            end
+          end
+        end
       end
 
       def names_in_test_dependency_order