mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 02:44:37 +00:00
u_boot_pylib: Move gitutil into the library
Move this file into U-Boot's Python library, so that it is no-longer part of patman. This makes a start on: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/35 Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
064556910e
commit
5c33fb0288
20 changed files with 20 additions and 22 deletions
|
@ -19,8 +19,8 @@ import time
|
|||
|
||||
from buildman import builderthread
|
||||
from buildman import toolchain
|
||||
from patman import gitutil
|
||||
from u_boot_pylib import command
|
||||
from u_boot_pylib import gitutil
|
||||
from u_boot_pylib import terminal
|
||||
from u_boot_pylib import tools
|
||||
from u_boot_pylib.terminal import tprint
|
||||
|
|
|
@ -17,8 +17,8 @@ import sys
|
|||
import threading
|
||||
|
||||
from buildman import cfgutil
|
||||
from patman import gitutil
|
||||
from u_boot_pylib import command
|
||||
from u_boot_pylib import gitutil
|
||||
from u_boot_pylib import tools
|
||||
|
||||
RETURN_CODE_RETRY = -1
|
||||
|
|
|
@ -20,9 +20,9 @@ from buildman import bsettings
|
|||
from buildman import cfgutil
|
||||
from buildman import toolchain
|
||||
from buildman.builder import Builder
|
||||
from patman import gitutil
|
||||
from patman import patchstream
|
||||
from u_boot_pylib import command
|
||||
from u_boot_pylib import gitutil
|
||||
from u_boot_pylib import terminal
|
||||
from u_boot_pylib import tools
|
||||
from u_boot_pylib.terminal import print_clear, tprint
|
||||
|
|
|
@ -18,8 +18,8 @@ from buildman import bsettings
|
|||
from buildman import cmdline
|
||||
from buildman import control
|
||||
from buildman import toolchain
|
||||
from patman import gitutil
|
||||
from u_boot_pylib import command
|
||||
from u_boot_pylib import gitutil
|
||||
from u_boot_pylib import terminal
|
||||
from u_boot_pylib import test_util
|
||||
from u_boot_pylib import tools
|
||||
|
|
|
@ -50,8 +50,7 @@ def run_tests(skip_net_tests, debug, verbose, args):
|
|||
# 'entry' module.
|
||||
result = test_util.run_test_suites(
|
||||
'buildman', debug, verbose, False, args.threads, test_name, [],
|
||||
[test.TestBuild, func_test.TestFunctional,
|
||||
'buildman.toolchain', 'patman.gitutil'])
|
||||
[test.TestBuild, func_test.TestFunctional, 'buildman.toolchain'])
|
||||
|
||||
return (0 if result.wasSuccessful() else 1)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
__all__ = ['checkpatch', 'commit', 'control', 'func_test', 'get_maintainer',
|
||||
'gitutil', '__main__', 'patchstream', 'project', 'series',
|
||||
'settings','setup', 'status', 'test_checkpatch', 'test_settings']
|
||||
'__main__', 'patchstream', 'project', 'series',
|
||||
'settings', 'setup', 'status', 'test_checkpatch', 'test_settings']
|
||||
|
|
|
@ -49,7 +49,7 @@ def run_patman():
|
|||
result = test_util.run_test_suites(
|
||||
'patman', False, False, False, None, None, None,
|
||||
[test_checkpatch.TestPatch, func_test.TestFunctional,
|
||||
'gitutil', 'settings'])
|
||||
'settings'])
|
||||
|
||||
sys.exit(0 if result.wasSuccessful() else 1)
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ import os
|
|||
import re
|
||||
import sys
|
||||
|
||||
from patman import gitutil
|
||||
from u_boot_pylib import command
|
||||
from u_boot_pylib import gitutil
|
||||
from u_boot_pylib import terminal
|
||||
|
||||
EMACS_PREFIX = r'(?:[0-9]{4}.*\.patch:[0-9]+: )?'
|
||||
|
|
|
@ -13,8 +13,8 @@ import os
|
|||
import pathlib
|
||||
import sys
|
||||
|
||||
from patman import gitutil
|
||||
from patman import project
|
||||
from u_boot_pylib import gitutil
|
||||
from patman import settings
|
||||
|
||||
PATMAN_DIR = pathlib.Path(__file__).parent
|
||||
|
|
|
@ -12,8 +12,8 @@ import os
|
|||
import sys
|
||||
|
||||
from patman import checkpatch
|
||||
from patman import gitutil
|
||||
from patman import patchstream
|
||||
from u_boot_pylib import gitutil
|
||||
from u_boot_pylib import terminal
|
||||
|
||||
|
||||
|
|
|
@ -18,11 +18,11 @@ import unittest
|
|||
|
||||
from patman.commit import Commit
|
||||
from patman import control
|
||||
from patman import gitutil
|
||||
from patman import patchstream
|
||||
from patman.patchstream import PatchStream
|
||||
from patman.series import Series
|
||||
from patman import settings
|
||||
from u_boot_pylib import gitutil
|
||||
from u_boot_pylib import terminal
|
||||
from u_boot_pylib import tools
|
||||
from u_boot_pylib.test_util import capture_sys_output
|
||||
|
|
|
@ -7,8 +7,8 @@ import os
|
|||
import shlex
|
||||
import shutil
|
||||
|
||||
from patman import gitutil
|
||||
from u_boot_pylib import command
|
||||
from u_boot_pylib import gitutil
|
||||
|
||||
|
||||
def find_get_maintainer(script_file_name):
|
||||
|
|
|
@ -15,9 +15,9 @@ import shutil
|
|||
import tempfile
|
||||
|
||||
from patman import commit
|
||||
from patman import gitutil
|
||||
from patman.series import Series
|
||||
from u_boot_pylib import command
|
||||
from u_boot_pylib import gitutil
|
||||
|
||||
# Tags that we detect and remove
|
||||
RE_REMOVE = re.compile(r'^BUG=|^TEST=|^BRANCH=|^Review URL:'
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
import os.path
|
||||
|
||||
from patman import gitutil
|
||||
from u_boot_pylib import gitutil
|
||||
|
||||
def detect_project():
|
||||
"""Autodetect the name of the current project.
|
||||
|
|
|
@ -12,8 +12,8 @@ import sys
|
|||
import time
|
||||
|
||||
from patman import get_maintainer
|
||||
from patman import gitutil
|
||||
from patman import settings
|
||||
from u_boot_pylib import gitutil
|
||||
from u_boot_pylib import terminal
|
||||
from u_boot_pylib import tools
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import argparse
|
|||
import os
|
||||
import re
|
||||
|
||||
from patman import gitutil
|
||||
from u_boot_pylib import gitutil
|
||||
|
||||
"""Default settings per-project.
|
||||
|
||||
|
|
|
@ -11,10 +11,10 @@ import tempfile
|
|||
import unittest
|
||||
|
||||
from patman import checkpatch
|
||||
from patman import gitutil
|
||||
from patman import patchstream
|
||||
from patman import series
|
||||
from patman import commit
|
||||
from u_boot_pylib import gitutil
|
||||
|
||||
|
||||
class Line:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
__all__ = ['command', 'cros_subprocess','terminal', 'test_util', 'tools',
|
||||
'tout']
|
||||
__all__ = ['command', 'cros_subprocess', 'gitutil', 'terminal', 'test_util',
|
||||
'tools', 'tout']
|
||||
|
|
|
@ -13,7 +13,6 @@ if __name__ == "__main__":
|
|||
sys.path.append(os.path.join(our_path, '..'))
|
||||
|
||||
# Run tests
|
||||
from u_boot_pylib import terminal
|
||||
from u_boot_pylib import test_util
|
||||
|
||||
result = test_util.run_test_suites(
|
||||
|
|
Loading…
Add table
Reference in a new issue