mesa_test 1.1.0 → 1.1.5
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/bin/mesa_test +8 -2
- data/lib/mesa_test.rb +9 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67a3b5fcc09a02b4c410c9b0ab2aac3d6dfa3dfcf6f5900cb8a38ef0331c046d
|
4
|
+
data.tar.gz: 916e67cc83f406d3445ab7929550040d1523ec5bde28912eff7ce21cfff3c99b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a515ba0b01e33f620859ed424c52d9100dfacbfb2879a2d4501727754dc632fc4aafc949cdffc8e7232d63ab8b6efa780ac38605ffeb2b9712b2fb15dfa8dc7
|
7
|
+
data.tar.gz: e3e2bb6229c70234288febc0cdafd32d7f0f5ace512afb68b21a3afccfb1091e6954a5101797e610c92341684337c48a8dd667754afbcdee91162dbdd9dc318c
|
data/bin/mesa_test
CHANGED
@@ -210,8 +210,14 @@ class MesaTest < Thor
|
|
210
210
|
github_protocol: s.github_protocol
|
211
211
|
)
|
212
212
|
end
|
213
|
-
|
214
|
-
|
213
|
+
begin
|
214
|
+
m.clean
|
215
|
+
m.install
|
216
|
+
rescue MesaDirError
|
217
|
+
shell.say "\nFailed in compiling MESA.", :red
|
218
|
+
else
|
219
|
+
shell.say "\nSuccessfully compiled MESA commit #{m.sha}.", :green
|
220
|
+
end
|
215
221
|
end
|
216
222
|
|
217
223
|
desc 'install_and_test [SHA]', 'Install, test, and submit an entire commit.'
|
data/lib/mesa_test.rb
CHANGED
@@ -51,7 +51,8 @@ e-mail and password will be stored in plain text.'
|
|
51
51
|
|
52
52
|
# Get API key for submitting failure logs
|
53
53
|
response = shell.ask 'What is the logs submission API token associated '\
|
54
|
-
"with the email #{s.email} (required
|
54
|
+
"with the email #{s.email} (required; contact Josiah Schwab if you "\
|
55
|
+
"need a key)? (#{s.logs_token})", :blue
|
55
56
|
s.logs_token = response unless response.empty?
|
56
57
|
|
57
58
|
# Determine if we'll use ssh or https to access github
|
@@ -211,7 +212,7 @@ e-mail and password will be stored in plain text.'
|
|
211
212
|
end
|
212
213
|
|
213
214
|
def load_computer_data
|
214
|
-
data_hash = YAML.
|
215
|
+
data_hash = YAML.load(File.read(config_file))
|
215
216
|
@computer_name = data_hash['computer_name']
|
216
217
|
@email = data_hash['email']
|
217
218
|
@password = data_hash['password']
|
@@ -496,14 +497,13 @@ e-mail and password will be stored in plain text.'
|
|
496
497
|
|
497
498
|
# report out results
|
498
499
|
if !res.is_a? Net::HTTPOK
|
499
|
-
shell.say "Failed to submit
|
500
|
-
"
|
501
|
-
"#{test_case.mesa.sha}.", :red
|
500
|
+
shell.say "Failed to submit logs for test case #{test_case.test_name} "\
|
501
|
+
"in commit #{test_case.mesa.sha}.", :red
|
502
502
|
false
|
503
503
|
else
|
504
|
-
shell.say "Successfully submitted
|
505
|
-
"
|
506
|
-
|
504
|
+
shell.say "Successfully submitted logs for test case "\
|
505
|
+
"#{test_case.test_name} in commit #{test_case.mesa.sha}.",
|
506
|
+
:green
|
507
507
|
true
|
508
508
|
end
|
509
509
|
end
|
@@ -989,7 +989,7 @@ class MesaTestCase
|
|
989
989
|
raise TestCaseDirError.new('No results found for test case '\
|
990
990
|
"#{test_name}.")
|
991
991
|
end
|
992
|
-
YAML.
|
992
|
+
YAML.load(File.read(testhub_file))
|
993
993
|
end
|
994
994
|
|
995
995
|
# whether or not a test case has passed; only has meaning
|
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.5
|
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-05-
|
11
|
+
date: 2021-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
|
-
rubygems_version: 3.2
|
84
|
+
rubygems_version: 3.1.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: Command line tool for running and reporting the MESA test suites.
|