From c35b55cdf87d32382fc44a851166ec2cd15f5f4f Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 26 Nov 2014 11:11:26 -0800 Subject: specify that leap test can accept a FILTER --- lib/leap_cli/commands/test.rb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'lib/leap_cli/commands/test.rb') diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb index 2f146b7..fe48a1f 100644 --- a/lib/leap_cli/commands/test.rb +++ b/lib/leap_cli/commands/test.rb @@ -2,14 +2,8 @@ module LeapCli; module Commands desc 'Run tests.' command :test do |test| - test.desc 'Creates files needed to run tests.' - test.command :init do |init| - init.action do |global_options,options,args| - generate_test_client_openvpn_configs - end - end - - test.desc 'Run tests.' + test.desc 'Run the test suit on FILTER nodes.' + test.arg_name 'FILTER', :optional => true 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| @@ -26,6 +20,13 @@ module LeapCli; module Commands end end + test.desc 'Creates files needed to run tests.' + test.command :init do |init| + init.action do |global_options,options,args| + generate_test_client_openvpn_configs + end + end + test.default_command :run end -- cgit v1.2.3