simp-beaker-helpers 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simp/beaker_helpers.rb +1 -1
- data/lib/simp/rake/beaker.rb +20 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5f010fc7c285530d86bc638c6d5bfbc417aa859
|
4
|
+
data.tar.gz: 3634d944e794eb9ddcba53540bb474a93d8385b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7a9de47d6d22f0035a0e98153517a48f820861fb2dc7ef7633e930fde5d8e6974155be36cf0578dba2885be53d6061b299644ac9abbcff1aff63b51c3960f89
|
7
|
+
data.tar.gz: f4e2109ddae74fc105d9ad46871ee4363e6c4dc66f36e42f3fb9aae1424a0ac69a44ed4aa21854eb8ae661f55bfadb8c091fca01dfb7c6f7ae73351fafa04a8d
|
data/lib/simp/beaker_helpers.rb
CHANGED
data/lib/simp/rake/beaker.rb
CHANGED
@@ -116,6 +116,17 @@ module Simp::Rake
|
|
116
116
|
|
117
117
|
raise("Error: Suites Directory at '#{suite_basedir}'!") unless File.directory?(suite_basedir)
|
118
118
|
|
119
|
+
unless File.directory?(File.join(suite_basedir, suite))
|
120
|
+
STDERR.puts("Error: Could not find suite '#{suite}'")
|
121
|
+
STDERR.puts("Available Suites:")
|
122
|
+
STDERR.puts(' * ' + Dir.glob(
|
123
|
+
File.join(suite_basedir, '*')).sort.map{ |x|
|
124
|
+
File.basename(x)
|
125
|
+
}.join("\n * ")
|
126
|
+
)
|
127
|
+
exit(1)
|
128
|
+
end
|
129
|
+
|
119
130
|
suite_config = {
|
120
131
|
'fail_fast' => true
|
121
132
|
}
|
@@ -127,6 +138,8 @@ module Simp::Rake
|
|
127
138
|
suites = Hash.new
|
128
139
|
if suite
|
129
140
|
suites[suite] = Hash.new
|
141
|
+
# If a suite was set, make sure it runs.
|
142
|
+
suites[suite]['default_run'] = true
|
130
143
|
else
|
131
144
|
Dir.glob(File.join(suite_basedir,'*')) do |file|
|
132
145
|
if File.directory?(file)
|
@@ -178,12 +191,17 @@ module Simp::Rake
|
|
178
191
|
$stdout.puts("\n\n=== Suite '#{name}' Starting ===\n\n")
|
179
192
|
|
180
193
|
if nodeset
|
181
|
-
|
194
|
+
nodeset_yml = File.join(suites[ste]['path'], 'nodesets', "#{nodeset}.yml")
|
195
|
+
unless File.file?(nodeset_yml)
|
182
196
|
$stdout.puts("=== Suite #{name} Nodeset '#{nodeset}' Not Found, Skipping ===")
|
183
197
|
next
|
184
198
|
end
|
185
199
|
|
186
|
-
ENV['
|
200
|
+
ENV['BEAKER_setfile'] = nodeset_yml
|
201
|
+
else
|
202
|
+
nodeset_yml = File.join(suites[ste]['path'], 'nodesets', 'default.yml')
|
203
|
+
|
204
|
+
ENV['BEAKER_setfile'] = nodeset_yml
|
187
205
|
end
|
188
206
|
|
189
207
|
Rake::Task[:beaker].clear
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-beaker-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: beaker
|