mesa_test 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mesa_test +12 -6
- data/lib/mesa_test.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da985b24f2f663204e6a0997aad537e20e66048f
|
4
|
+
data.tar.gz: fbb45d3a63bd562e4d2f558a4e7e417ebf97c3a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfb5515091aa3a8955b2bf4e39a6289f712cfa53c11a8ca0bf6a99d715250726f848b545e7d3d9ea1709f71b9a1dbeb0e413d96e553d39b888724c32df4d7e74
|
7
|
+
data.tar.gz: 40ecd8cde7da463524ccfe31874b2a12e4af0f136b6fcf6bb99b237980d15fed08d25d8d64c6556887a1b043e53f134da2a6a927a278c61d808a80a3972730a2
|
data/bin/mesa_test
CHANGED
@@ -202,10 +202,11 @@ class MesaTest < Thor
|
|
202
202
|
|
203
203
|
`mesa_test test_all SOME_DIR`
|
204
204
|
|
205
|
-
If VERSION_NUMBER is 'non-paxton', then the most recent
|
206
|
-
other than Bill Paxton ('bill_paxton') is tested and the
|
207
|
-
ignored and set to false. Note that using 'HEAD' for version
|
208
|
-
automatically select the most recent release, regardless of the
|
205
|
+
If VERSION_NUMBER is 'non-paxton' or 'non_paxton', then the most recent
|
206
|
+
commit by anyone other than Bill Paxton ('bill_paxton') is tested and the
|
207
|
+
--diff flag is ignored and set to false. Note that using 'HEAD' for version
|
208
|
+
number will automatically select the most recent release, regardless of the
|
209
|
+
author.
|
209
210
|
|
210
211
|
With --diff option, assume the checksums are up-to-date (behave like
|
211
212
|
each_test_run_and_diff), on by default. To update checksums after ./rn
|
@@ -219,7 +220,7 @@ class MesaTest < Thor
|
|
219
220
|
read from ~/.mesa_test.yml.
|
220
221
|
|
221
222
|
With --log option, save yml file of test results in test directory and a
|
222
|
-
summary in the test suite directory. On by default. Shut off with --no-log.
|
223
|
+
summary in the test suite directory. On by default. Shut off with --no-log.
|
223
224
|
|
224
225
|
With --module option, select which module to search through, with the default
|
225
226
|
being "all". Example: --module=star.
|
@@ -232,6 +233,11 @@ class MesaTest < Thor
|
|
232
233
|
def install_and_test_all(version, mesa_dir)
|
233
234
|
s = create_and_check_submitter(force: options[:force])
|
234
235
|
mesa_version, diff = filter_version_and_diff(version, s)
|
236
|
+
if mesa_version.nil?
|
237
|
+
puts 'No commits by anyone other than Bill Paxton since '\
|
238
|
+
"r#{s.last_tested}. Exiting."
|
239
|
+
return
|
240
|
+
end
|
235
241
|
m = Mesa.download(version_number: mesa_version, new_mesa_dir: mesa_dir)
|
236
242
|
m.clean
|
237
243
|
m.install
|
@@ -302,7 +308,7 @@ class MesaTest < Thor
|
|
302
308
|
end
|
303
309
|
|
304
310
|
def filter_version_and_diff(version, submitter)
|
305
|
-
if version.downcase
|
311
|
+
if %w[non-paxton non_paxton].include?(version.to_s.downcase)
|
306
312
|
[Mesa.last_non_paxton_revision(submitter.last_tested), false]
|
307
313
|
else
|
308
314
|
[version, options[:diff]]
|
data/lib/mesa_test.rb
CHANGED
@@ -340,9 +340,9 @@ e-mail and password will be stored in plain text.'
|
|
340
340
|
puts unsubmitted_cases.join("\n")
|
341
341
|
end
|
342
342
|
# return true and update last tested if all cases were submitted
|
343
|
-
success = submitted_cases.length == mesa.test_names.length
|
343
|
+
success = submitted_cases.length == mesa.test_names[mod].length
|
344
344
|
if success
|
345
|
-
last_tested = mesa.
|
345
|
+
@last_tested = mesa.version_number
|
346
346
|
shell.say "\n\nUpdating last tested revision to #{last_tested}."
|
347
347
|
save_computer_data
|
348
348
|
end
|