mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 01:44:15 +00:00
ci: Account for PR_NUMBER being set to an empty string
This is the case for CI after merge that is no longer associated with a pull request.
This commit is contained in:
committed by
Trevor Gross
parent
2585a57dc7
commit
2db05de8fd
@@ -205,7 +205,7 @@ class Context:
|
||||
skip_tests = False
|
||||
error_on_many_tests = False
|
||||
|
||||
if pr_number is not None:
|
||||
if pr_number is not None and len(pr_number) > 0:
|
||||
pr = PrInfo.load(pr_number)
|
||||
skip_tests = pr.contains_directive(SKIP_EXTENSIVE_DIRECTIVE)
|
||||
error_on_many_tests = not pr.contains_directive(
|
||||
|
||||
Reference in New Issue
Block a user