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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mesa_test +12 -6
  3. data/lib/mesa_test.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8cc4cbf769460ee63c65aaff5c1e61d5d762fe7
4
- data.tar.gz: '096c818d3a7f9f0e86cc2a2fe1dc59d03476cc51'
3
+ metadata.gz: da985b24f2f663204e6a0997aad537e20e66048f
4
+ data.tar.gz: fbb45d3a63bd562e4d2f558a4e7e417ebf97c3a7
5
5
  SHA512:
6
- metadata.gz: 92f2cfd3aa55cb4bcc396499d993bc994f112c8f192a938966120f05c174cd125308d922889848a78aef4f78aae329f1157794344d43be3486036c75ab26a1dd
7
- data.tar.gz: 73550ea45adde5b962ef00bea03efaadab4b378601286239c78b4ccf62cf1bccd2478c3d365bbfc32d5d3239e131df78f3f59bc37d6011c03120f86a7fc027f8
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 commit by anyone
206
- other than Bill Paxton ('bill_paxton') is tested and the --diff flag is
207
- ignored and set to false. Note that using 'HEAD' for version number will
208
- automatically select the most recent release, regardless of the author.
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 == 'non-paxton'
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.version
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mesa_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Wolf