Home
last modified time | relevance | path

Searched refs:cwd (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest_posix.c57 const char *cwd; in ztest_relative_filename() local
60 cwd = nsi_host_getcwd(buf, sizeof(buf)); in ztest_relative_filename()
61 if (cwd && strlen(file) > strlen(cwd) && !strncmp(file, cwd, strlen(cwd))) { in ztest_relative_filename()
62 return file + strlen(cwd) + 1; /* move past the trailing '/' */ in ztest_relative_filename()
/Zephyr-latest/scripts/west_commands/tests/
Dtest_mdb.py206 cc.assert_called_once_with(test_case['o'], cwd=RC_BUILD_DIR)
214 pii.assert_called_once_with(test_case['o'], cwd=RC_BUILD_DIR)
223 cc_calls = [call(TEST_NSIM_CORE1, cwd=RC_BUILD_DIR), call(TEST_NSIM_CORE2, cwd=RC_BUILD_DIR)]
225 pii.assert_called_once_with(TEST_NSIM_CORES_LAUNCH, cwd=RC_BUILD_DIR)
235 cc.assert_called_once_with(test_case['o'], cwd=tmpdir)
243 cc.assert_called_once_with(test_case['o'], cwd=tmpdir)
260 pii.assert_called_once_with(test_case['o'], cwd=tmpdir)
268 pii.assert_called_once_with(test_case['o'], cwd=tmpdir)
286 cc_calls = [call(TEST_HW_CORE1, cwd=tmpdir), call(TEST_HW_CORE2, cwd=tmpdir)]
288 pii.assert_called_once_with(TEST_HW_CORES_LAUNCH_NO_HOSTLINK, cwd=tmpdir)
[all …]
/Zephyr-latest/scripts/west_commands/
Dbuild_helpers.py39 def _resolve_build_dir(fmt, guess, cwd, **kwargs): argument
45 if escapes_directory(cwd, source_dir):
46 kwargs['source_dir'] = os.path.relpath(source_dir, cwd)
100 cwd = os.getcwd()
102 default = _resolve_build_dir(default, guess, cwd, **kwargs)
106 elif is_zephyr_build(cwd):
107 build_dir = cwd
Drun_tests.py36 subprocess.run(mypy, check=True, cwd=here)
40 subprocess.run(pytest, check=True, cwd=here)
Dzcmake.py30 def run_cmake(args, cwd=None, capture_output=False, dry_run=False, env=None): argument
56 if cwd:
57 kwargs['cwd'] = cwd
60 in_cwd = ' (in {})'.format(cwd) if cwd else ''
Dgtags.py80 cwd=self.manifest.topdir,
Dpatch.py402 proc = subprocess.run(apply_cmd_list, cwd=mod_path)
441 proc = subprocess.run(checkout_cmd_list, capture_output=True, cwd=mod_path)
450 proc = subprocess.run(clean_cmd_list, capture_output=True, cwd=mod_path)
Dsign.py433 subprocess.run(generate_cmd, check=True, cwd=self.build_dir)
466 subprocess.run(preproc_cmd, check=True, cwd=self.build_dir)
467 subprocess.run(full_preproc_cmd, check=True, cwd=self.build_dir)
/Zephyr-latest/scripts/footprint/
Dcompare_footprint46 cwd=os.environ.get('ZEPHYR_BASE'), shell=True)
87 cwd=os.environ.get('ZEPHYR_BASE'), shell=True)
92 def sanity_results_filename(commit=None, cwd=os.environ.get('ZEPHYR_BASE')): argument
101 return os.path.join(cwd,'scripts', 'sanity_chk', file_name)
103 def git_checkout(commit, cwd=os.environ.get('ZEPHYR_BASE')): argument
105 stderr=subprocess.STDOUT, cwd=cwd, shell=True)
112 cwd=cwd, shell=True)
119 def run_sanity_footprint(commit=None, cwd=os.environ.get('ZEPHYR_BASE'), argument
128 cwd=cwd, shell=True)
151 cwd=tempfile.gettempdir(), shell=True)
[all …]
/Zephyr-latest/scripts/kconfig/
Dlint.py166 cwd=modpath, check=False)
187 print(run(cmd, cwd=modpath, check=False), end="")
254 cwd=modpath).splitlines():
293 def run(cmd, cwd=TOP_DIR, check=True): argument
303 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd)
/Zephyr-latest/tests/misc/llext-edk/pytest/
Dtest_edk.py54 output = check_output(command, text=True, cwd=tempdir)
79 output = check_output(command, text=True, cwd=tempdir_extension, env=env)
84 output = check_output(command, text=True, cwd=tempdir_extension, env=env)
/Zephyr-latest/subsys/fs/
Dshell.c87 static char cwd[MAX_PATH_LEN] = "/"; variable
95 if (cwd[1] == '\0') { in create_abs_path()
103 strncpy(path, cwd, len); in create_abs_path()
126 strcpy(cwd, "/"); in cmd_cd()
131 char *prev = strrchr(cwd, '/'); in cmd_cd()
133 if (!prev || prev == cwd) { in cmd_cd()
134 strcpy(cwd, "/"); in cmd_cd()
156 strncpy(cwd, path, sizeof(cwd)); in cmd_cd()
157 cwd[sizeof(cwd) - 1] = '\0'; in cmd_cd()
169 strncpy(path, cwd, sizeof(path)); in cmd_ls()
[all …]
/Zephyr-latest/scripts/ci/
Dcheck_compliance.py40 def git(*args, cwd=None, ignore_non_zero=False): argument
48 cp = subprocess.run(git_cmd, capture_output=True, cwd=cwd)
229 cwd=GIT_TOP)
236 shell=False, cwd=GIT_TOP)
316 cwd=GIT_TOP)
323 cwd=GIT_TOP)
666 ":samples", ":tests", cwd=ZEPHYR_BASE)
717 cwd=ZEPHYR_BASE)
720 cwd=ZEPHYR_BASE)
769 ":samples", ":tests", cwd=ZEPHYR_BASE)
[all …]
/Zephyr-latest/scripts/west_commands/runners/
Dmdb.py96 mdb_runner.check_call(mdb_sub_cmd, cwd=mdb_runner.build_dir)
108 mdb_runner.call(mdb_cmd, cwd=mdb_runner.build_dir)
Dspi_burn.py91 cwd=os.path.dirname(self.iceman_path),
/Zephyr-latest/doc/develop/west/
Dwest-apis.rst154 The *cwd* keyword argument was replaced with a catch-all ``**kwargs``.
163 The *cwd* keyword argument was replaced with a catch-all ``**kwargs``.
480 The *cwd* parameter can now be any ``os.PathLike``.
484 The *cwd* parameter can now be any ``os.PathLike``.
489 The *cwd* parameter can now be any ``os.PathLike``.
493 The *cwd* parameter can now be any ``os.PathLike``.
497 The *cwd* parameter can now be any ``os.PathLike``.
502 The *cwd* parameter can now be any ``os.PathLike``.
/Zephyr-latest/scripts/
Dzephyr_module.py462 cwd=path).wait()
468 cwd=path)
479 cwd=path).wait()
489 cwd=path)
505 cwd=path)
521 cwd=path)
/Zephyr-latest/doc/_scripts/
Dgen_boards_catalog.py181 subprocess.run(twister_cmd, check=True, cwd=ZEPHYR_BASE, env=minimal_env)
/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_edtlib_binding_init.py1151 cwd = os.getcwd()
1156 os.chdir(cwd)
Dtest_edtlib.py32 cwd = os.getcwd()
37 os.chdir(cwd)
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Denvironment.py1124 cwd=ZEPHYR_BASE)
1140 cwd=ZEPHYR_BASE)
Drunner.py514 self.cwd = None
551 if self.cwd:
552 kwargs['cwd'] = self.cwd
717 if self.cwd:
718 kwargs['cwd'] = self.cwd
Dhandlers.py361 command, stdout=subprocess.PIPE, stderr=stderr_log_fp, cwd=self.build_dir, env=env
1109 cwd=self.build_dir
1399 cwd=self.build_dir) as proc:
/Zephyr-latest/scripts/tests/twister/
Dtest_runner.py323 cmake.cwd = os.path.join('dummy', 'working', 'dir')
355 cwd=os.path.join('dummy', 'working', 'dir')
466 cmake.cwd = os.path.join('dummy', 'working', 'dir')
505 cwd=os.path.join('dummy', 'working', 'dir')
/Zephyr-latest/scripts/west_commands/completion/
Dwest-completion.fish200 set -l cwd (pwd)
204 set cwd $argv[1]
208 set -l cwd_split (string split '/' $cwd)

12