aboutsummaryrefslogtreecommitdiff
path: root/pgo_tools/benchmark_pgo_profiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'pgo_tools/benchmark_pgo_profiles.py')
-rwxr-xr-xpgo_tools/benchmark_pgo_profiles.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pgo_tools/benchmark_pgo_profiles.py b/pgo_tools/benchmark_pgo_profiles.py
index 7b46b99e..73b99c7a 100755
--- a/pgo_tools/benchmark_pgo_profiles.py
+++ b/pgo_tools/benchmark_pgo_profiles.py
@@ -187,8 +187,7 @@ def main(argv: List[str]):
)
opts = parser.parse_args(argv)
- if not Path("/etc/cros_chroot_version").exists():
- sys.exit("Run me inside of the chroot.")
+ pgo_tools.exit_if_not_in_chroot()
profiles = opts.profile
validate_profiles(parser, profiles)