File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,15 @@ class Tests:
15
15
test_case_kls : type
16
16
17
17
def run (self ):
18
- logging .info ("Run testcases where the build is triggered by a ‹vm-image-build› comment" )
19
18
prs_for_comment = [
20
19
pr for pr in self .project .get_pr_list () if pr .title .startswith ("Test VM Image builds" )
21
20
]
21
+ if prs_for_comment :
22
+ logging .info ("Run testcases where the build is triggered by a ‹vm-image-build› comment" )
23
+ else :
24
+ logging .warning (
25
+ "No testcases found where the build is triggered by a ‹vm-image-build› comment" ,
26
+ )
22
27
for pr in prs_for_comment :
23
28
self .test_case_kls (
24
29
project = self .project ,
@@ -28,10 +33,13 @@ def run(self):
28
33
comment = DEPLOYMENT .pr_comment_vm_image_build ,
29
34
).run_test ()
30
35
31
- logging .info ("Run testcases where the build is triggered by a ‹build› comment" )
32
36
prs_for_comment = [
33
37
pr for pr in self .project .get_pr_list () if pr .title .startswith ("Basic test case:" )
34
38
]
39
+ if prs_for_comment :
40
+ logging .info ("Run testcases where the build is triggered by a ‹build› comment" )
41
+ else :
42
+ logging .warning ("No testcases found where the build is triggered by a ‹build› comment" )
35
43
for pr in prs_for_comment :
36
44
self .test_case_kls (
37
45
project = self .project ,
@@ -40,12 +48,15 @@ def run(self):
40
48
deployment = DEPLOYMENT ,
41
49
).run_test ()
42
50
43
- logging .info ("Run testcase where the build is triggered by push" )
44
51
pr_for_push = [
45
52
pr
46
53
for pr in self .project .get_pr_list ()
47
54
if pr .title .startswith (DEPLOYMENT .push_trigger_tests_prefix )
48
55
]
56
+ if pr_for_push :
57
+ logging .info ("Run testcase where the build is triggered by push" )
58
+ else :
59
+ logging .warning ("No testcase found where the build is triggered by push" )
49
60
if pr_for_push :
50
61
self .test_case_kls (
51
62
project = self .project ,
You can’t perform that action at this time.
0 commit comments