summaryrefslogtreecommitdiff
path: root/tools/patman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-04-29 07:22:19 -0600
committerSimon Glass <sjg@chromium.org>2025-05-27 10:07:41 +0100
commit3fd99e2177c17539f4101151cb061e8f7700d6a1 (patch)
treeb8e292fdfbf92fe88792c0311d4688dacfc1c027 /tools/patman/control.py
parent3c5f27ce124e0025b48601b8c811ccfe45f0fe3a (diff)
patman: Adjust how the fake request() function is provided
Instead of passing the URL and function to each call, put the fake into the Patchwork object instead. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/control.py')
-rw-r--r--tools/patman/control.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/patman/control.py b/tools/patman/control.py
index 06a9dfd2bca..cb8552ed550 100644
--- a/tools/patman/control.py
+++ b/tools/patman/control.py
@@ -24,6 +24,7 @@ from u_boot_pylib import terminal
from u_boot_pylib import tools
from patman import checkpatch
from patman import patchstream
+from patman import patchwork
from patman import send
@@ -95,12 +96,13 @@ def patchwork_status(branch, count, start, end, dest_branch, force,
# Allow the series to override the URL
if 'patchwork_url' in series:
url = series.patchwork_url
+ pwork = patchwork.Patchwork(url)
# Import this here to avoid failing on other commands if the dependencies
# are not present
from patman import status
status.check_and_show_status(series, found[0], branch, dest_branch, force,
- show_comments, url)
+ show_comments, pwork)
def do_patman(args):