mesa_test 0.2.4 → 0.2.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/lib/mesa_test.rb +13 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d3635cd111cb295a8afe86d46c18aee598350e6
|
4
|
+
data.tar.gz: 270f2132781573f89e8ff320ed9282459f856fe3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b756521b01809c96bf0e7cd2f5d88b7127138d982dc6d4d817c77c92dcc74195c4427b9d625d2bfa2ea47b21d7543691ab1caf4a39bbabc493083aa10946380
|
7
|
+
data.tar.gz: a101f2f85769f7e24aaf825bb664f325edd1d3cfdb0e897d77c2de05395e83ee5b4dee96335a4f0d3ec2e218ab0b5e9a84e0fab5381ebcb56736fbd5243ba3fa
|
data/lib/mesa_test.rb
CHANGED
@@ -253,6 +253,7 @@ e-mail and password will be stored in plain text.'
|
|
253
253
|
retries: test_case.retries,
|
254
254
|
backups: test_case.backups,
|
255
255
|
diff: test_case.diff,
|
256
|
+
checksum: test_case.checksum,
|
256
257
|
summary_text: test_case.summary_text
|
257
258
|
}
|
258
259
|
|
@@ -310,6 +311,7 @@ e-mail and password will be stored in plain text.'
|
|
310
311
|
retries: test_case.retries,
|
311
312
|
backups: test_case.backups,
|
312
313
|
diff: test_case.diff,
|
314
|
+
checksum: test_case.checksum,
|
313
315
|
summary_text: test_case.summary_text
|
314
316
|
},
|
315
317
|
extra: { test_case: test_name, mod: mod }
|
@@ -928,7 +930,7 @@ class MesaTestCase
|
|
928
930
|
:failure_msg, :success_msg, :photo, :runtime_seconds,
|
929
931
|
:test_omp_num_threads, :mesa_version, :shell, :mod, :retries,
|
930
932
|
:backups, :steps, :runtime_minutes, :summary_text, :compiler,
|
931
|
-
:compiler_version, :diff
|
933
|
+
:compiler_version, :diff, :checksum
|
932
934
|
attr_accessor :data_names, :data_types, :failure_type, :success_type,
|
933
935
|
:outcome
|
934
936
|
|
@@ -958,6 +960,9 @@ class MesaTestCase
|
|
958
960
|
# 1 means did diffs (not update_checksums; like each_test_run_and_diff)
|
959
961
|
# 0 means no diffs (update_checksums; like each_test_run)
|
960
962
|
@diff = 2
|
963
|
+
# start with nil. Should only be updated to a non-nil value if test is
|
964
|
+
# completely successful
|
965
|
+
@checksum = nil
|
961
966
|
|
962
967
|
# note: this gets overridden for new runs, so this is probably irrelevant
|
963
968
|
@summary_text = nil
|
@@ -1121,6 +1126,7 @@ class MesaTestCase
|
|
1121
1126
|
'backups' => backups,
|
1122
1127
|
'steps' => steps,
|
1123
1128
|
'diff' => diff,
|
1129
|
+
'checksum' => checksum,
|
1124
1130
|
'summary_text' => summary_text
|
1125
1131
|
}
|
1126
1132
|
if compiler == 'SDK'
|
@@ -1153,6 +1159,7 @@ class MesaTestCase
|
|
1153
1159
|
@backups = data['backups'] || @backups
|
1154
1160
|
@steps = data['steps'] || @steps
|
1155
1161
|
@diff = data['diff'] || @diff
|
1162
|
+
@checksum = data['checksum'] || @checksum
|
1156
1163
|
@summary_text = data['summary_text'] || @summary_text
|
1157
1164
|
@compiler = data['compiler'] || @compiler
|
1158
1165
|
|
@@ -1261,6 +1268,11 @@ class MesaTestCase
|
|
1261
1268
|
def succeed(success_type)
|
1262
1269
|
@success_type = success_type
|
1263
1270
|
@outcome = :pass
|
1271
|
+
# this should ONLY be read after we are certain we've passed AND that we
|
1272
|
+
# even have a newly-made checksum
|
1273
|
+
if File.exist?('checks.md5') && @mesa.update_checksums
|
1274
|
+
@checksum = File.read('checks.md5').split.first
|
1275
|
+
end
|
1264
1276
|
write_success_msg(success_type)
|
1265
1277
|
true
|
1266
1278
|
end
|
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: 0.2.
|
4
|
+
version: 0.2.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: 2018-
|
11
|
+
date: 2018-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|