commit | e84ad2c045f3439b9e20b977d74c7e4e394417a2 | [log] [tgz] |
---|---|---|
author | Jiakai Zhang <jiakaiz@google.com> | Mon Aug 16 03:19:18 2021 +0000 |
committer | Jiakai Zhang <jiakaiz@google.com> | Mon Aug 16 08:41:11 2021 +0000 |
tree | 61a2e0602b2ee9b9f8a3e92b9bc7e8deb30d0784 | |
parent | 3ba3edfee2592edeea4a4cf06336577178bf2b12 [diff] |
Fix OnDeviceSigningHostTest to correctly get mapped artifacts. We use `pidof` to get the pid of a process, in order to get the mapped files of the process from `/proc/<pid>/maps`. However, `pidof` may output multiple pids in some cases, separated by spaces, which leads to weird errors because the test cannot handle such output. After this change, only the first pid is taken. Bug: 189467174 Test: atest odsign_e2e_tests Change-Id: I6e137819fa032611636f92fdd2b6c9faf58acd25