Skip to content

Commit 33d9902

Browse files
committed
Fix check_and_update_jdk script by catching missing test URL.
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
1 parent 6bba969 commit 33d9902

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/scripts/check_and_update_jdk.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
all_tests_passed = True
4141
for i in range(len(tests)):
4242
response = requests.get(tests[i])
43+
if not response.ok:
44+
print(f'Test #{i + 1} not found ({tests[i]})')
45+
all_tests_passed = False
46+
break
4347
data = ast.literal_eval(response.text) # Use ast.literal_eval, because response.json() fails
4448
try:
4549
if data['status'] != 'PASSED':

0 commit comments

Comments
 (0)