commit | dd71d927a5bb687c7363b65f3a85f3b7231605fb | [log] [tgz] |
---|---|---|
author | Reka Norman <rekanorman@google.com> | Fri Jan 17 15:29:53 2025 +1100 |
committer | Reka Norman <rekanorman@google.com> | Wed Mar 12 09:32:57 2025 +1100 |
tree | b6ce7a6962cca2da15d50f0c7febaef361cb530f | |
parent | 287e07d3733883b937135c657b6b0f9770e98fb3 [diff] |
PerfettoHelper: Store traces in /data/local/tmp instead of /sdcard On devices using HSUM (headless system user mode), the test runs as the current user, e.g. 10, but shell commands run as the system user 0. Since the test results are stored in /sdcard which is user-specific storage, moving the trace file to the test results directory using the mv command fails since /sdcard/test_results doesn't exist for user 0. So store the traces in /data/local/tmp instead, which is not user-specific. Bug: 382321446 Test: Check that perfetto traces are saved for various tests: power-open-fixed-calculator - regular android test http://android-build/abtd/run/L99900030009054008/ systemui-multiuser-suite - android multiuser test AndroidAutomotiveMultiuserScenarioTests - AAOS multiuser test http://android-build/abtd/run/L31000030009013452/ tradefed.dts.power-idle-display-on - desktop test (using HSUM) http://android-build/abtd/run/L37800030009025042/ Merged-In: I8d8d5de2eebf55f0715be6f7550a43300990c578 Change-Id: I8d8d5de2eebf55f0715be6f7550a43300990c578