From 4e7e6b8dfe6363469f700260cf191a6fca6c202e Mon Sep 17 00:00:00 2001 From: elijah Date: Sat, 8 Mar 2014 23:05:10 -0800 Subject: added support for specifying what order nodes should be tested in. --- lib/leap_cli/commands/test.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/leap_cli/commands') diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb index da4a4b5..024ca25 100644 --- a/lib/leap_cli/commands/test.rb +++ b/lib/leap_cli/commands/test.rb @@ -13,7 +13,12 @@ module LeapCli; module Commands test.command :run do |run| run.switch 'continue', :desc => 'Continue over errors and failures (default is --no-continue).', :negatable => true run.action do |global_options,options,args| - manager.filter!(args).each_node do |node| + test_order = File.join(Path.platform, 'tests/order.rb') + if File.exists?(test_order) + require test_order + end + manager.filter!(args).names_in_test_dependency_order.each do |node_name| + node = manager.nodes[node_name] ssh_connect(node) do |ssh| ssh.run(test_cmd(options)) end -- cgit v1.2.3