summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-11-26 11:11:26 -0800
committerelijah <elijah@riseup.net>2014-11-26 11:11:26 -0800
commitc35b55cdf87d32382fc44a851166ec2cd15f5f4f (patch)
treeb77ceaf87cf85636b5056009a4bcb2b004f4a11e /lib
parent2b0e44d40780d4f2f8ac6bd5b3cc4e1c7ec2edc7 (diff)
specify that leap test can accept a FILTER
Diffstat (limited to 'lib')
-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