test_env.py --skip-set-lpac-acls for tests doesn't depends on sandbox
set_lpac_acls is for correct LPAC (less privileged app container) sandbox of CAS cache hard linking files (crbug.com/1225029#c21). When running tests under the entire code directory, it could take ~90s to setup ACLs. For the tests that doesn't depends on sandbox, set_lpac_acls could be skipped.
Bug: 1266194
Change-Id: I8e5eb71230fb55083869d29d3edd7adb58caffef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3259239
Auto-Submit: Kuan Huang <[email protected]>
Commit-Queue: Dirk Pranke <[email protected]>
Reviewed-by: Dirk Pranke <[email protected]>
Cr-Commit-Position: refs/heads/main@{#938560}
diff --git a/testing/scripts/metrics_python_tests.py b/testing/scripts/metrics_python_tests.py
index 72cecb85..70770f41 100755
--- a/testing/scripts/metrics_python_tests.py
+++ b/testing/scripts/metrics_python_tests.py
@@ -19,7 +19,8 @@
os.path.join(common.SRC_DIR, 'testing', 'test_env.py'),
os.path.join(common.SRC_DIR, 'tools', 'metrics',
'metrics_python_tests.py'),
- '--isolated-script-test-output', tempfile_path
+ '--isolated-script-test-output', tempfile_path,
+ '--skip-set-lpac-acls=1',
], cwd=os.path.join(common.SRC_DIR, 'out', args.build_config_fs))
with open(tempfile_path) as f: