aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-03-18 00:20:58 -0700
committerelijah <elijah@riseup.net>2014-03-18 00:20:58 -0700
commitb4407890476324742e560c3dcb6bda251f2fec12 (patch)
treefcbb7550dfb7628c991dd7ad09fc3704d254e54a /lib
parentdb93930987daef6e1c4488938ada843f820f4289 (diff)
downloadleap_cli-b4407890476324742e560c3dcb6bda251f2fec12.tar.gz
leap_cli-b4407890476324742e560c3dcb6bda251f2fec12.tar.bz2
only run the tests that are specified, regardless of dependencies
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/object_list.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/leap_cli/config/object_list.rb b/lib/leap_cli/config/object_list.rb
index 910e2f7..e975a5f 100644
--- a/lib/leap_cli/config/object_list.rb
+++ b/lib/leap_cli/config/object_list.rb
@@ -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