summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/commands')
-rw-r--r--lib/leap_cli/commands/test.rb17
1 files changed, 9 insertions, 8 deletions
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