mesa_test 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mesa_test.rb +9 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62a113597b8d49b277030dabfb72f46b42bf4c6d33993d86fd3bd98c513bbf44
4
- data.tar.gz: 355642660dddb5a4b87934c0f8fcb9c43a9fa4f900d8d809f62cda3cafcb8d89
3
+ metadata.gz: efc30aaa2527a9b7d5b1432f73086b20e5b2eeec104f818c1fc8fdb7c9b69e0f
4
+ data.tar.gz: 606ed99026dfbcefbdca50f6e4e3f53049f59594e2e21ee092b8ff226312148f
5
5
  SHA512:
6
- metadata.gz: 6db7a9183094ce00ca25adc3c51a02570a4d381432be02ee61ebf48d774b4e90904f61171e8530f8db6f2b6dc819bc78ff644ec8e85ff4b0da5d45ea70bf9f37
7
- data.tar.gz: a42908b873207b17ed8195f26c4bde8dd479e2c69dc49e3f2a406e4190109f95522aeb466741b2f18fd1d9966356bf22b7539ec2630af37322b7544bc3ac4cfc
6
+ metadata.gz: fd3560820fdd7b33e16cde218d61cdf964f851f99f08e1ef7b590cd659314fd5c5cf6cba739095318b9214e8110b098bd4dfc569388cb7c93b39f82bbc2646a5
7
+ data.tar.gz: 2a4f7d381e7ac5e155bf7000347443fafd04fda8363f12debeea1843561b5b832e9f3268d3670e267f41ec241b8f4cb3d775158d9cf00e5a3eddbd6f86caad23
data/lib/mesa_test.rb CHANGED
@@ -484,8 +484,9 @@ e-mail and password will be stored in plain text.'
484
484
 
485
485
  # send build log to the logs server
486
486
  def submit_test_log(test_case, skip_passing: true)
487
- # skip submission if mesa was never installed or if the test passed
488
- if !test_case.mesa.installed? || (test_case.passed? && skip_passing)
487
+ # skip submission if mesa was never installed, test was never run, or if
488
+ # the test passed
489
+ if !test_case.mesa.installed? || !test_case.ran? || (test_case.passed? && skip_passing)
489
490
  return true
490
491
  end
491
492
 
@@ -989,13 +990,18 @@ class MesaTestCase
989
990
 
990
991
  def results_hash
991
992
  testhub_file = File.join(test_case_dir, 'testhub.yml')
992
- unless File.exist?(testhub_file)
993
+ unless ran?
993
994
  raise TestCaseDirError.new('No results found for test case '\
994
995
  "#{test_name}.")
995
996
  end
996
997
  YAML.load(File.read(testhub_file))
997
998
  end
998
999
 
1000
+ # rough proxy for whether or not the test has even been run
1001
+ def ran?
1002
+ File.exist?(testhub_file)
1003
+ end
1004
+
999
1005
  # whether or not a test case has passed; only has meaning
1000
1006
  # if we can load the results hash, though
1001
1007
  def passed?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mesa_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Wolf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-18 00:00:00.000000000 Z
11
+ date: 2021-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json