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.
- checksums.yaml +4 -4
- data/lib/mesa_test.rb +9 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: efc30aaa2527a9b7d5b1432f73086b20e5b2eeec104f818c1fc8fdb7c9b69e0f
|
|
4
|
+
data.tar.gz: 606ed99026dfbcefbdca50f6e4e3f53049f59594e2e21ee092b8ff226312148f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
488
|
-
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2021-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|