mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
ci: add --project option to ci_run_n_monitor.py
Now that we have drm-ci, add --project, so the script can also be used to linux (and any other projects). Let the default to "mesa" so it can keep behaving as before when the option is not given. Signed-off-by: Helen Koike <helen.koike@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24912>
This commit is contained in:
parent
f97e38f9cd
commit
67147a3c5c
1 changed files with 2 additions and 1 deletions
|
|
@ -248,6 +248,7 @@ def parse_args() -> None:
|
|||
"--force-manual", action="store_true", help="Force jobs marked as manual"
|
||||
)
|
||||
parser.add_argument("--stress", action="store_true", help="Stresstest job(s)")
|
||||
parser.add_argument("--project", default="mesa", help="GitLab project name")
|
||||
|
||||
mutex_group1 = parser.add_mutually_exclusive_group()
|
||||
mutex_group1.add_argument(
|
||||
|
|
@ -305,7 +306,7 @@ if __name__ == "__main__":
|
|||
pipe = cur_project.pipelines.get(pipeline_id)
|
||||
REV = pipe.sha
|
||||
else:
|
||||
cur_project = get_gitlab_project(gl, "mesa")
|
||||
cur_project = get_gitlab_project(gl, args.project)
|
||||
if not REV:
|
||||
REV = check_output(['git', 'rev-parse', 'HEAD']).decode('ascii').strip()
|
||||
pipe = wait_for_pipeline(cur_project, REV)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue