Home
last modified time | relevance | path

Searched +full:stdout +full:- +full:path (Results 1 – 25 of 1092) sorted by relevance

12345678910>>...44

/openbmc/openbmc/poky/scripts/lib/devtool/
H A D__init__.py3 # Development tool - utility functions for plugins
7 # SPDX-License-Identifier: GPL-2.0-only
38 logger.debug('Executing command: "%s" using init path %s' % (cmd, init_path))
44 if sys.stdout.isatty():
46 cmd = 'script -e -q -c "%s" /dev/null' % cmd
52 """Run program with stdout shown on sys.stdout"""
58 cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, **options
61 reader = codecs.getreader('utf-8')(process.stdout)
66 sys.stdout.write(out)
67 sys.stdout.flush()
[all …]
H A Dstandard.py1 # Development tool - standard commands plugin
3 # Copyright (C) 2014-2017 Intel Corporation
5 # SPDX-License-Identifier: GPL-2.0-only
27 override_branch_prefix = 'devtool-override-'
36 …e_oe.ArgumentUsageError('At least one of recipename, srctree, fetchuri or -f/--fetch must be speci…
44 raise DevtoolError('URI specified as positional argument as well as -f/--fetch')
50 raise DevtoolError('URI specified as positional argument as well as -f/--fetch')
57 elif os.path.isdir(args.recipename):
58 …logger.warning('Ambiguous argument "%s" - assuming you mean it to be the recipe name' % args.recip…
62 … raise DevtoolError('The -S/--srcrev option is only valid when fetching from an SCM repository')
[all …]
H A Dupgrade.py1 # Development tool - upgrade command plugin
3 # Copyright (C) 2014-2017 Intel Corporation
5 # SPDX-License-Identifier: GPL-2.0-only
20 devtool_path = os.path.dirname(os.path.realpath(__file__)) + '/../../../meta/lib'
21 sys.path = sys.path + [devtool_path]
37 srctree = os.path.join(tmpdir, dirs[0])
43 for path in standard._ls_tree(orig):
44 dest_dir = os.path.join(dest, os.path.dirname(path))
46 dest_path = os.path.join(dest, path)
47 shutil.move(os.path.join(orig, path), dest_path)
[all …]
/openbmc/u-boot/tools/patman/
H A Dtest_util.py1 # SPDX-License-Identifier: GPL-2.0+
23 prog: Program to run (with be passed a '-t' argument to run tests
37 path = os.path.dirname(prog)
39 glob_list = glob.glob(os.path.join(path, '*.py'))
44 glob_list += ['*libfdt.py', '*site-packages*']
45 cmd = ('PYTHONPATH=$PYTHONPATH:%s/sandbox_spl/tools python-coverage run '
46 '--omit "%s" %s -P1 -t' % (build_dir, ','.join(glob_list), prog))
48 stdout = command.Output('python-coverage', 'report')
49 lines = stdout.splitlines()
51 # Convert '/path/to/name.py' just the module name 'name'
[all …]
H A Dcheckpatch.py1 # SPDX-License-Identifier: GPL-2.0+
17 os.path.join(os.getcwd(), '..', '..'),
18 os.path.join(top_level, 'tools'),
19 os.path.join(top_level, 'scripts'),
23 for path in try_list:
24 fname = os.path.join(path, 'checkpatch.pl')
25 if os.path.isfile(fname):
29 while not os.path.ismount(path):
30 fname = os.path.join(path, 'src', 'third_party', 'kernel', 'files',
32 if os.path.isfile(fname):
[all …]
/openbmc/openbmc/meta-arm/meta-arm/lib/oeqa/selftest/cases/
H A Drunfvp.py11 runfvp = pathlib.Path(__file__).parents[5] / "scripts" / "runfvp"
12 testdir = pathlib.Path(__file__).parent / "tests"
14 @OETestTag("meta-arm")
21 Call runfvp passing any arguments. If check is True verify return stdout
28 …ret = subprocess.run(cli, cwd=testdir, env=env, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, …
30 … self.assertEqual(ret.returncode, 0, f"runfvp exit {ret.returncode}, output: {ret.stdout}")
31 return ret.stdout
33 … self.assertNotEqual(ret.returncode, 0, f"runfvp exit {ret.returncode}, output: {ret.stdout}")
34 return ret.stdout
37 output = self.run_fvp("--help")
[all …]
/openbmc/openbmc-test-automation/bin/
H A Dauto_status_file.py11 save_dir_path = sys.path.pop(0)
24 sys.path.insert(0, save_dir_path)
28 description="%(prog)s will create a status file path name adhering to the"
29 + " following pattern: <status dir path>/<prefix>.yymmdd."
31 + " direct its stdout/stderr to the status file and optionally"
32 + " to stdout. This dual output streaming will be"
38 prefix_chars="-+",
42 "--status_dir_path",
44 help="The path to the directory where the status file will be created."
51 "--prefix",
[all …]
/openbmc/openbmc/poky/scripts/contrib/
H A Dimage-manifest8 # SPDX-License-Identifier: GPL-2.0-only
21 scripts_path = os.path.dirname(__file__)
23 sys.path = sys.path + [lib_path]
26 logger = scriptutils.logger_create(os.path.basename(__file__))
32 logger.error("Unable to find bitbake by searching parent directory of this script or PATH")
34 logger.debug('Using standard bitbake path %s' % bitbakepath)
61 if "-native" in pkg:
66 pkgdatafile = os.path.join(pkgdata_dir, 'runtime-reverse', pkg)
103 if os.path.exists(os.path.join(checkpth, '.git')):
105 checkpth = os.path.dirname(checkpth)
[all …]
/openbmc/linux/tools/testing/kunit/
H A Dkunit_kernel.py1 # SPDX-License-Identifier: GPL-2.0
31 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__))
32 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs')
49 def make_mrproper(self) -> None:
51 subprocess.check_output(['make', 'mrproper'], stderr=subprocess.STDOUT)
57 def make_arch_config(self, base_kunitconfig: kunit_config.Kconfig) -> kunit_config.Kconfig:
60 def make_olddefconfig(self, build_dir: str, make_options: Optional[List[str]]) -> None:
68 subprocess.check_output(command, stderr=subprocess.STDOUT)
74 def make(self, jobs: int, build_dir: str, make_options: Optional[List[str]]) -> None:
75 command = ['make', 'ARCH=' + self._linux_arch, 'O=' + build_dir, '--jobs=' + str(jobs)]
[all …]
/openbmc/u-boot/scripts/kconfig/tests/
H A Dconftest.py1 # SPDX-License-Identifier: GPL-2.0
18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf'))
24 This class provides methods to run text-based interface of Kconfig
26 stdout, and stderr. It also provides methods to compare those
36 self._test_dir = os.path.dirname(str(request.fspath))
41 """Run text-based Kconfig executable and save the result.
43 mode: input mode option (--oldaskconfig, --defconfig=<file> etc.)
62 shutil.copyfile(os.path.join(self._test_dir, dot_config),
63 os.path.join(temp_dir, '.config'))
67 stdout=subprocess.PIPE,
[all …]
/openbmc/linux/scripts/kconfig/tests/
H A Dconftest.py1 # SPDX-License-Identifier: GPL-2.0
18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf'))
24 This class provides methods to run text-based interface of Kconfig
26 stdout, and stderr. It also provides methods to compare those
36 self._test_dir = os.path.dirname(str(request.fspath))
41 """Run text-based Kconfig executable and save the result.
43 mode: input mode option (--oldaskconfig, --defconfig=<file> etc.)
66 shutil.copyfile(os.path.join(self._test_dir, dot_config),
67 os.path.join(temp_dir, '.config'))
71 stdout=subprocess.PIPE,
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dcode_update_utils.py16 robot_pgm_dir_path = os.path.dirname(__file__) + os.sep
18 sys.path.append(repo_data_path)
96 BuiltIn().fail("Did not find any non-running BMC images.")
160 Get the path to the latest uploaded file.
163 dir_path Path to the dir from which the name of the
168 stdout, stderr, rc = bsu.bmc_execute_command(
171 + "; stat -c '%Y %n' * |"
172 + " sort -k1,1nr | head -n 1"
174 return stdout.split(" ")[-1]
182 tar_file_path The path to a tar file that holds the image
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/librepo/librepo/
H A D0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch6 Upstream-Status: Inappropriate [oe-core specific]
7 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
9 ---
10 librepo/python/CMakeLists.txt | 12 ++++++------
11 1 file changed, 6 insertions(+), 6 deletions(-)
13 diff --git a/librepo/python/CMakeLists.txt b/librepo/python/CMakeLists.txt
15 --- a/librepo/python/CMakeLists.txt
17 @@ -16,12 +16,12 @@ SET (librepomodule_SRCS
21 -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "
[all …]
/openbmc/linux/scripts/clang-tools/
H A Drun-clang-tools.py2 # SPDX-License-Identifier: GPL-2.0
8 """A helper routine run clang-tidy and the clang static-analyzer on
20 """Set up and parses command-line arguments.
23 Has keys: [path, type]
25 usage = """Run clang-tidy or the clang static-analyzer on a
31 choices=["clang-tidy", "clang-analyzer"],
33 path_help = "Path to the compilation database to parse"
34 parser.add_argument("path", type=str, help=path_help)
47 # Disable all checks, then re-enable the ones we want
49 checks.append("-checks=-*")
[all …]
/openbmc/u-boot/tools/buildman/
H A Dbuilderthread.py1 # SPDX-License-Identifier: GPL-2.0+
15 RETURN_CODE_RETRY = -1
30 if os.path.realpath('.') == os.path.realpath(dirname):
76 """This thread builds U-Boot for a particular board.
78 An input queue provides each new job. We run 'make' to build U-Boot
83 thread_num: Our thread number (0-n-1), used to decide on a
104 mrproper - can be called to clean source
105 config - called to configure for a board
106 build - the main make invocation - it does the build
121 the build and just return the previously-saved results.
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dlegacy_serial.c1 // SPDX-License-Identifier: GPL-2.0
16 #include <asm/pci-bridge.h>
17 #include <asm/ppc-pci.h>
43 {.type = "tsi-bridge",},
46 {.compatible = "simple-bus",},
47 {.compatible = "wrs,epld-localbus",},
52 static int legacy_serial_console = -1;
60 offset = offset << p->regshift; in tsi_serial_in()
62 tmp = readl(p->membase + (UART_IIR & ~3)); in tsi_serial_in()
65 return readb(p->membase + offset); in tsi_serial_in()
[all …]
/openbmc/openbmc/meta-arm/meta-arm-toolchain/conf/distro/include/
H A Dexternal-arm-toolchain-versions.inc11 path = os.path.join(toolchain_path, 'bin', target_prefix + cmd)
12 args = [path] + list(args)
18 stdout, stderr = eat_run(d, 'gcc', '-v')
23 last_line = stderr.splitlines()[-1]
35 … # gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))
36 …# gcc version 8.2.1 20180802 (GNU Toolchain for the A-profile Architecture 8.2-2018.11 (arm-rel-8.…
37 return version.split()[10].split('-')[1]
39 … # gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))
40 return version.split()[9].split('-')[1]
65 if os.path.exists(lddpath):
[all …]
/openbmc/openbmc/poky/meta/classes/
H A Dchrpath.bbclass4 # SPDX-License-Identifier: MIT
20 out = subprocess.check_output([cmd, "-l", fpath], universal_newlines=True)
34 if rpath.find("$ORIGIN") != -1:
37 rpath = os.path.normpath(rpath)
41 bb.warn("Skipping RPATH %s as is a standard search path for %s" % (rpath, fpath))
46 …new_rpaths.append("$ORIGIN/" + os.path.relpath(rpath, os.path.dirname(fpath.replace(rootdir, "/"))…
57 subprocess.check_output([cmd, "-r", args, fpath],
60 … bb.fatal("chrpath command failed with exit code %d:\n%s\n%s" % (e.returncode, e.stdout, e.stderr))
65 …p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', fpath],stdout=sub.PIPE,stderr=sub.PIPE, text…
67 # If returned successfully, process stdout for results
[all …]
/openbmc/openbmc/poky/scripts/lib/recipetool/
H A Dappend.py1 # Recipe creation tool - append plugin
5 # SPDX-License-Identifier: GPL-2.0-only
39 …"""Find the recipe installing the specified target path, optionally limited to a select list of pa…
53 …e': '${sysconfdir}/hostname contents should be set by setting hostname:pn-base-files = "value" in …
62 for root, dirs, files in os.walk(os.path.join(pkgdata_dir, 'runtime')):
68 pkgdatafile = os.path.join(root, fn)
69 if pkglist and not os.path.exists(pkgdatafile):
84 … scriptval = line.split(': ', 1)[1].strip().encode('utf-8').decode('unicode_escape')
85 if 'update-alternatives --install %s ' % targetpath in scriptval:
112 logger.debug('source path: %s' % srcpath)
[all …]
H A Dcreate_kernel.py1 # Recipe creation tool - kernel support plugin
5 # SPDX-License-Identifier: GPL-2.0-only
28 if not os.path.exists(os.path.join(srctree, tell)):
34 …template = os.path.join(tinfoil.config_data.getVar('COREBASE'), 'meta-skeleton', 'recipes-kernel',…
37 while newlines[-1].startswith('#'):
38 del newlines[-1]
40 stdout, _ = bb.process.run('git rev-parse HEAD', cwd=srctree, shell=True)
42 stdout = None
43 if stdout:
44 return stdout.strip(), op, 0, True
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A Diotests.py1 # Common utilities and Python wrappers for qemu-iotests
56 qemu_img_args = [os.environ.get('QEMU_IMG_PROG', 'qemu-img')]
60 qemu_io_args = [os.environ.get('QEMU_IO_PROG', 'qemu-io')]
64 qemu_io_args_no_fmt = [os.environ.get('QEMU_IO_PROG', 'qemu-io')]
69 qemu_nbd_prog = os.environ.get('QEMU_NBD_PROG', 'qemu-nbd')
77 qsd_prog = os.environ.get('QSD_PROG', 'qemu-storage-daemon')
105 valgrind_logfile = "--log-file=" + test_dir
111 qemu_valgrind = ['valgrind', valgrind_logfile, '--error-exitcode=99']
115 luks_default_key_secret_opt = 'key-secret=keysec0'
122 logger_name: str, level: int = logging.CRITICAL) -> Iterator[None]:
[all …]
/openbmc/openbmc/poky/meta/classes-global/
H A Dpatch.bbclass3 # SPDX-License-Identifier: MIT
8 PATCHDEPENDENCY = "${PATCHTOOL}-native:do_populate_sysroot"
15 PATCHDEPENDENCY:append:class-target = " patch-replacement-native:do_populate_sysroot"
40 workdir = os.path.abspath(d.getVar('WORKDIR'))
41 testsrcdir = os.path.abspath(srcsubdir)
43 # Double-check that either workdir or S or some directory in-between is a git repository
46 if os.path.exists(os.path.join(testsrcdir, '.git')):
51 testsrcdir = os.path.dirname(testsrcdir)
55 patchdir = os.path.join(srcsubdir, 'patches')
56 if os.path.exists(patchdir):
[all …]
/openbmc/openbmc/poky/meta/lib/oe/
H A Dreproducible.py4 # SPDX-License-Identifier: GPL-2.0-only
16 # See https://reproducible-builds.org/specs/source-date-epoch/
30 # with recipe-specific functionality to write the appropriate
51 # This works for well-kept repositories distributed via tarball.
66 filepath = os.path.join(sourcedir, file)
67 if os.path.isfile(filepath):
79 # This is the default git fetcher unpack path
81 gitpath = os.path.join(unpackdir, "git/.git")
82 if os.path.isdir(gitpath):
86 gitpath = os.path.join(sourcedir, ".git")
[all …]
/openbmc/qemu/scripts/simplebench/
H A Dbench_prealloc.py33 p = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
38 m = re.search(r'Run completed in (\d+.\d+) seconds.', p.stdout)
41 return {'error': f'failed to parse qemu-img output: {p.stdout}'}
43 return {'error': f'qemu-img failed: {p.returncode}: {p.stdout}'}
47 fname = f"{case['dir']}/prealloc-test.qcow2"
53 subprocess.run([env['qemu-img-binary'], 'create', '-f', 'qcow2', fname,
54 '16G'], stdout=subprocess.DEVNULL,
57 args = [env['qemu-img-binary'], 'bench', '-c', str(case['count']),
58 '-d', '64', '-s', case['block-size'], '-t', 'none', '-n', '-w']
60 args += ['--image-opts',
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dsshcontrol.py4 # SPDX-License-Identifier: MIT
21 "stdout": subprocess.PIPE,
22 "stderr": subprocess.STDOUT,
25 "bufsize": -1,
57 if select.select([self.process.stdout], [], [], 5)[0] != []:
58 data = os.read(self.process.stdout.fileno(), 1024)
60 self.process.stdout.close()
63 data = data.decode("utf-8")
78 …lastline = "\nProcess killed - no output for %d seconds. Total running time: %d seconds." % (timeo…
108 '-o', 'UserKnownHostsFile=/dev/null',
[all …]

12345678910>>...44