Skip to content

Commit b9c05f6

Browse files
SRE-1975 test: replace -hw with vm (#421)
All VM tests in master and 2.4 are tagged with "vm", so you "vm" instead of "-hw". Signed-off-by: Dalton Bohning <[email protected]>
1 parent c7bfe62 commit b9c05f6

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Jenkinsfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ pipeline {
535535
// lots more test cases could be cooked up, to be sure
536536
script {
537537
stages = [[name: 'Fake CentOS 7 Functional stage',
538-
tag: '-hw'],
538+
tag: 'vm'],
539539
[name: 'Fake CentOS 7 Functional Hardware Medium stage',
540540
tag: 'hw,medium,-provider'],
541541
[name: 'Fake CentOS 7 Functional Hardware Medium Provider stage',
@@ -577,10 +577,7 @@ pipeline {
577577
'COMMIT_MESSAGE=' + cm.stripIndent()]) {
578578
cmp = commit.tag_template.replace('@commits.value@', commit.tags[0].value)
579579
cmp = cmp.replace('@stages.tag@', stage.tag)
580-
// Useful for debugging since Jenkins'
581-
// assert() is pretty lame
582-
// println('assert(' + parseStageInfo()['test_tag'] + " == ${cmp})")
583-
assert(parseStageInfo()['test_tag'] == cmp)
580+
assert(parseStageInfo()['test_tag'] == cmp), parseStageInfo()['test_tag'] + ' != ' + cmp
584581
}
585582
}
586583
}

vars/getFunctionalStageTags.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
String stage_tags = ''
1414

1515
if (stage_name.contains('Functional')) {
16-
// stage_tags = 'vm'
17-
stage_tags = '-hw'
16+
stage_tags = 'vm'
1817
if (stage_name.contains('Hardware')) {
1918
stage_tags = 'hw,large'
2019
if (stage_name.contains('Small')) {

0 commit comments

Comments
 (0)