/aosp_15_r20/external/toolchain-utils/ |
H A D | image_chromeos.py | 43 def CheckForCrosFlash(chromeos_root, remote, log_level): argument 49 command, chromeos_root=chromeos_root, machine=remote 61 def DisableCrosBeeps(chromeos_root, remote, log_level): argument 69 command, chromeos_root=chromeos_root, machine=remote 76 def FindChromeOSImage(image_file, chromeos_root): argument 93 sys.path.insert(0, chromeos_root) 97 return path_util.ToChrootPath(image_file, source_path=chromeos_root) 164 if options.chromeos_root is None: 170 options.chromeos_root = os.path.expanduser(options.chromeos_root) 174 options.chromeos_root, options.remote [all …]
|
H A D | make_root_writable.py | 37 def RebootChromebook(chromeos_root, remote, cmd_executer): argument 40 cmd, chromeos_root=chromeos_root, machine=remote 72 def FindPartitionNum(chromeos_root, remote, logs, cmd_executer): argument 78 chromeos_root=chromeos_root, 114 chromeos_root, remote, cmd_executer, partition_num argument 122 chromeos_root=chromeos_root, 129 def TryRemountPartitionAsRW(chromeos_root, remote, cmd_executer): argument 133 chromeos_root=chromeos_root, 168 if options.chromeos_root is None: 174 options.chromeos_root = os.path.expanduser(options.chromeos_root) [all …]
|
H A D | remote_test.py | 42 if options.chromeos_root is None: 48 options.chromeos_root = os.path.expanduser(options.chromeos_root) 53 command, chromeos_root=options.chromeos_root, machine=options.remote 65 chromeos_root=options.chromeos_root, 72 chromeos_root=options.chromeos_root, 80 chromeos_root=options.chromeos_root, 88 chromeos_root=options.chromeos_root, 98 chromeos_root=options.chromeos_root, 106 chromeos_root=options.chromeos_root, 108 board = ce.CrosLearnBoard(options.chromeos_root, options.remote)
|
H A D | build_chromeos.py | 142 if options.chromeos_root is None: 144 options.chromeos_root = os.path.expanduser(options.chromeos_root) 145 scripts_dir = os.path.join(options.chromeos_root, "src", "scripts") 173 options.chromeos_root, options.board 199 ret = cmd_executer.ChrootRunCommand(options.chromeos_root, command) 205 options.chromeos_root + "/chroot/build/" + options.board 211 options.chromeos_root, 242 options.chromeos_root, 279 options.chromeos_root, 315 options.chromeos_root, [all …]
|
H A D | tc_enter_chroot.py | 144 chromeos_root = options.chromeos_root 146 chromeos_root = os.path.expanduser(chromeos_root) 150 chromeos_root = os.path.abspath(chromeos_root) 170 if not os.path.exists(chromeos_root): 172 "chromeos_root " + options.chromeos_root + " does not exist!" 177 if not os.path.exists(chromeos_root + "/src/scripts/build_packages"): 179 options.chromeos_root + "/src/scripts/build_packages" " not found!" 189 full_mounted_tc_root = chromeos_root + "/chroot/" + mounted_tc_root 240 options.other_mounts, chromeos_root + "/chroot/" 272 command = "cd %s/src/scripts && cros_sdk --enter" % chromeos_root [all …]
|
H A D | chromiumos_image_diff.py | 41 def __init__(self, image, chromeos_root, no_unmount): argument 43 self.chromeos_root = chromeos_root 373 chromeos_root = None 374 if options.chromeos_root: 375 chromeos_root = options.chromeos_root 384 chromeos_root = t 386 if not chromeos_root: 392 image = CrosImage(image_path, chromeos_root, options.no_unmount)
|
H A D | lock_machine.py | 71 self, remotes, force_option, chromeos_root, locks_dir="", log=None argument 87 self.chromeos_root = chromeos_root 92 sys.path.append(chromeos_root) 534 if not os.path.isdir(options.chromeos_root): 535 parser.error("Cannot find chromeos_root: %s." % options.chromeos_root) 548 machine_list, options.force, options.chromeos_root
|
H A D | build_tc.py | 34 chromeos_root, argument 42 self._chromeos_root = chromeos_root 326 chromeos_root = misc.CanonicalizePath(options.chromeos_root) 371 chromeos_root, 383 chromeos_root, 394 chromeos_root,
|
/aosp_15_r20/external/toolchain-utils/crosperf/ |
H A D | download_images.py | 58 def GetBuildID(self, chromeos_root, xbuddy_label): argument 66 chromeos_root, command 76 def DownloadImage(self, chromeos_root, build_id, image_name): argument 85 chromeos_root, os.path.join("/tmp", build_id) 94 gsutil_cmd = os.path.join(chromeos_root, GS_UTIL) 110 def UncompressImage(self, chromeos_root, build_id): argument 113 chromeos_root, 163 def DownloadSingleFile(self, chromeos_root, build_id, package_file_name): argument 170 gsutil_cmd = os.path.join(chromeos_root, GS_UTIL) 187 chromeos_root, os.path.join("/tmp", build_id) [all …]
|
H A D | machine_manager.py | 47 def __init__(self, name, chromeos_root, log_level, cmd_exec=None): argument 57 self.chromeos_root = chromeos_root 84 command, machine=self.name, chromeos_root=self.chromeos_root 132 command, machine=self.name, chromeos_root=self.chromeos_root 141 command, machine=self.name, chromeos_root=self.chromeos_root 172 command, machine=self.name, chromeos_root=self.chromeos_root 181 command, machine=self.name, chromeos_root=self.chromeos_root 218 chromeos_root, argument 231 self.chromeos_root = None 249 self.chromeos_root = chromeos_root [all …]
|
H A D | label.py | 27 chromeos_root, argument 42 chromeos_root = os.path.expanduser(chromeos_root) 61 if not chromeos_root: 63 chromeos_root = FileUtils().ChromeOSRootFromImage( 66 if not chromeos_root: 73 chromeos_root = FileUtils().CanonicalizeChromeOSRoot(chromeos_root) 74 if not chromeos_root: 77 % (name, chromeos_root) 80 self.chromeos_root = chromeos_root 93 self.chromeos_root, chrome_src_rel_path [all …]
|
H A D | suite_runner.py | 129 Path(label.chromeos_root, SSHWATCHER), machine_name 154 def RemoveTelemetryTempFile(self, machine, chromeos_root): argument 157 chromeos_root, os.path.join("/tmp", filename) 202 command, machine=machine, chromeos_root=label.chromeos_root 214 label.chromeos_root, command, command_terminator=self._ct 225 command, machine=machine, chromeos_root=label.chromeos_root 237 self.RemoveTelemetryTempFile(machine, label.chromeos_root) 283 label.chromeos_root, 290 gsutil_cmd = os.path.join(label.chromeos_root, GS_UTIL) 292 download_path = misc.GetOutsideChrootPath(label.chromeos_root, "/tmp")
|
H A D | experiment.py | 30 chromeos_root, argument 53 self.chromeos_root = chromeos_root 90 if not chromeos_root: 92 if label.chromeos_root: 93 chromeos_root = label.chromeos_root 95 if not chromeos_root: 105 chromeos_root,
|
H A D | results_cache.py | 52 self.chromeos_root = label.chromeos_root 189 self.chromeos_root, 267 self.chromeos_root, "/tmp" 275 self.chromeos_root, self.temp_dir 281 self.chromeos_root, command, print_to_console=False 305 self.chromeos_root, perf_data_file 308 self.chromeos_root, "/usr/bin/perf" 333 self.chromeos_root, command 474 out_chroot_path = misc.GetOutsideChrootPath(self.chromeos_root, path) 492 self.chromeos_root, perf_data_file [all …]
|
H A D | experiment_factory.py | 112 chromeos_root = global_settings.GetField("chromeos_root") 120 if crosfleet and not self.CheckCrosfleetTool(chromeos_root, log_level): 405 chromeos_root = label_settings.GetField("chromeos_root") 433 chromeos_root, 464 chromeos_root, 482 chromeos_root, 508 chromeos_root, 560 def CheckCrosfleetTool(self, chromeos_root, log_level): argument 568 chromeos_root, "chromeos-admin", "lab-tools", "setup_lab_tools"
|
H A D | download_images_buildid_test.py | 37 if options.chromeos_root is None: 39 self.chromeos_root = options.chromeos_root 84 result = downloader.GetBuildID(self.chromeos_root, test_id)
|
/aosp_15_r20/external/toolchain-utils/cros_utils/ |
H A D | misc.py | 90 def GetChromeOSKeyFile(chromeos_root): argument 92 chromeos_root, 99 def GetInsideChrootPath(chromeos_root, file_path): argument 100 sys.path.insert(0, chromeos_root) 104 return path_util.ToChrootPath(path=file_path, source_path=chromeos_root) 107 def GetOutsideChrootPath(chromeos_root, file_path): argument 108 sys.path.insert(0, chromeos_root) 112 return path_util.FromChrootPath(path=file_path, source_path=chromeos_root) 125 def GetImageDir(chromeos_root, board): argument 127 chromeos_root, [all …]
|
H A D | buildbot_utils.py | 39 def PeekTrybotImage(chromeos_root, buildbucket_id): argument 54 rc, out, _ = RunCommandInPath(chromeos_root, command) 87 chromeos_root, argument 126 _, out, _ = RunCommandInPath(chromeos_root, command) 137 chromeos_root, argument 168 chromeos_root, buildbot_name, patch_list, tryjob_flags, build_toolchain 180 status, image = PeekTrybotImage(chromeos_root, buildbucket_id) 222 def DoesImageExist(chromeos_root, build): argument 230 ret = ce.ChrootRunCommand(chromeos_root, command, print_to_console=False) 234 def WaitForImage(chromeos_root, build): argument [all …]
|
H A D | command_executer.py | 247 def RemoteAccessInitCommand(self, chromeos_root, machine, port=None): argument 252 command += "\n. " + chromeos_root + "/src/scripts/common.sh" 253 command += "\n. " + chromeos_root + "/src/scripts/remote_access.sh" 272 def CrosLearnBoard(self, chromeos_root, machine): argument 273 command = self.RemoteAccessInitCommand(chromeos_root, machine) 289 chromeos_root=None, argument 306 not chromeos_root, "chromeos_root not given!" 309 if not chromeos_root or not machine: 311 chromeos_root = os.path.expanduser(chromeos_root) 324 chromeos_root=chromeos_root, [all …]
|
H A D | file_utils.py | 47 def CanonicalizeChromeOSRoot(self, chromeos_root): argument 48 chromeos_root = os.path.expanduser(chromeos_root) 49 if os.path.isdir(os.path.join(chromeos_root, "chromite")): 50 return chromeos_root 55 chromeos_root = os.path.join( 58 return self.CanonicalizeChromeOSRoot(chromeos_root) 83 def CanonicalizeChromeOSRoot(self, chromeos_root): argument
|
H A D | locks.py | 16 def AcquireLock(machines, chromeos_root, timeout=1200): argument 24 machines, False, chromeos_root 40 def ReleaseLock(machines, chromeos_root): argument 44 lock_machine.LockManager(machines, False, chromeos_root).UpdateMachines(
|
/aosp_15_r20/external/toolchain-utils/go/chromeos/ |
H A D | setup_chromeos_testing.py | 81 def GenerateGoHelperScripts(ce, arm_board, x86_board, chromeos_root): argument 90 chromeos_root, "src", "third_party", "toolchain-utils", "go", "chromeos" 121 ce, arm_board, arm_dut, x86_board, x86_dut, chromeos_root argument 126 ssh_dir = os.path.join(chromeos_root, "chroot", "home", user, ".ssh") 129 chromeos_root, "src", "scripts", "mod_for_test_scripts", "testing_rsa" 183 def CleanUp(ce, x86_board, arm_board, chromeos_root): argument 193 chromeos_root, "src", "third_party", "toolchain-utils", "go", "chromeos" 245 if not os.path.exists(options.chromeos_root): 246 print("Invalid ChromeOS Root: %s" % options.chromeos_root) 267 options.chromeos_root, [all …]
|
/aosp_15_r20/external/toolchain-utils/llvm_tools/ |
H A D | chroot.py | 39 def VerifyChromeOSRoot(chromeos_root: Union[Path, str]) -> None: 47 path = Path(chromeos_root).expanduser() / subdir 70 chromeos_root: Union[Path, str], 103 cwd=chromeos_root, 112 chromeos_root: str, 141 abs_path = os.path.join(chromeos_root, rel_path)
|
H A D | update_chromeos_llvm_hash.py | 50 chromeos_root: Path 80 chromeos_root_str = str(chroot_opts.chromeos_root) 599 chroot_opts.chromeos_root / "src" / "third_party" / "chromiumos-overlay" 628 UpdatePortageManifests(manifest_packages, chroot_opts.chromeos_root) 631 EnsurePackageMaskContains(chroot_opts.chromeos_root, git_hash) 727 chroot_opts.chromeos_root, 738 str(chroot_opts.chromeos_root), [chroot_ebuild_str]
|
/aosp_15_r20/external/toolchain-utils/crosperf/experiment_files/ |
H A D | telemetry_perf_perf | 21 chromeos_root=~/chromiumos 50 --chromeos_root="${chromeos_root}" \
|