Skip to content

Commit 9ce8a35

Browse files
committed
Fix missing attn
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent 79cc15a commit 9ce8a35

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Tests/scs-compatible-iaas.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,4 +552,5 @@ versions:
552552
- version: next
553553
test: scs-compatible-iaas-next
554554
- version: v5.1 # copy of v5, but with include "scs-0123-v1", which had simply been forgotten
555+
attn: 1
555556
test: scs-compatible-iaas-v5.1

Tests/scs-compatible-kaas.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,5 @@ timeline:
9595
v1: draft
9696
versions:
9797
- version: v1
98+
attn: 1
9899
test: scs-compatible-kaas-v1

Tests/scs_cert_lib.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
KEYWORDS = {
2020
'spec': ('uuid', 'name', 'url', 'versions', 'prerequisite', 'variables', 'scripts', 'groups', 'timeline'),
2121
'scripts': ('executable', 'env', 'args', 'testcases'),
22-
'versions': ('version', 'test'),
22+
'versions': ('version', 'test', 'attn'),
2323
'groups': ('id', 'url', 'name', 'include'),
2424
'testcases': ('lifetime', 'section', 'id', 'description', 'url'),
2525
}
@@ -110,9 +110,9 @@ def _resolve_spec(spec: dict):
110110
version['_idx'] = idx
111111
test = test_lookup[version['test']]
112112
testcases = collect_testcases(test)
113-
if version.get('stabilized_at'):
114-
for testcase in testcases:
115-
testcase['attn'] += 1
113+
attn = version.get('attn', 0)
114+
for testcase in testcases:
115+
testcase['attn'] += attn
116116
version['test'] = test
117117
version['testcase_ids'] = [testcase['id'] for testcase in testcases]
118118
# step 4b. resolve references to versions in timeline

0 commit comments

Comments
 (0)