summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYinchu Chen <chenyc5@motorola.com>2021-01-19 14:07:50 +0000
committer钱友 <qianyou@xiaomi.com>2021-01-21 02:18:58 +0000
commit1dca50c4e697e8206c93d693b2b28c7a77a0a2a5 (patch)
tree063dd2bebc3ca88323960516f8a7292e582430c6
parentab26a45e7f21a8143ad4817ba9f04d4206468975 (diff)
downloadkernel-pie-vts-dev.tar.gz
fix parse boot_id errorpie-vts-dev
This bug was caused by an upgrade of the parse library: parse 1.19.0 Released: Jan 14, 2021. There is a "\n" at the end of contents of /proc/sys/kernel/random/boot_id. Bug: b/177880369 Test: run vts -m VtsKernelProcFileApi -t VtsKernelProcFileApi#testProcSysKernelRandomBootId Change-Id: Id0c4c0b2dd136289bfcf11e6a840d1d52253644d
-rw-r--r--api/proc/ProcSimpleFileTests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/proc/ProcSimpleFileTests.py b/api/proc/ProcSimpleFileTests.py
index e5543125..ab23a246 100644
--- a/api/proc/ProcSimpleFileTests.py
+++ b/api/proc/ProcSimpleFileTests.py
@@ -222,7 +222,7 @@ class ProcSysKernelRandomBootId(KernelProcFileTestBase.KernelProcFileTestBase):
'''/proc/sys/kernel/random/boot_id generates a random ID each boot.'''
def parse_contents(self, contents):
- return self.parse_line("{:uuid}", contents, dict(uuid=token_uuid))[0]
+ return self.parse_line("{:uuid}\n", contents, dict(uuid=token_uuid))[0]
def get_path(self):
return "/proc/sys/kernel/random/boot_id"