summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2025-03-20 09:31:22 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-20 04:25:34 -0700
commite966e271e8714558f7cda9ef1cb1500aa747f7ea (patch)
treeaff64b690eb0d2bcdeb48884f452c5c6b3eff4be
parent2fda8f36c8ccb34a49c31d76be4eaaa6d9d45760 (diff)
Use a raw string in `run_test_build.py`.
Avoid `SyntaxWarning: invalid escape sequence '\.'`. Test: buildbot-build.sh --target Bug: 399857401 Change-Id: I616c41941545b7c8540d2d5ca3706cbc3ce1cb8a
-rwxr-xr-xtest/run_test_build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run_test_build.py b/test/run_test_build.py
index 5569ffbcae..464b36180e 100755
--- a/test/run_test_build.py
+++ b/test/run_test_build.py
@@ -150,7 +150,7 @@ class BuildTestContext:
stderr=subprocess.STDOUT,
stdout=subprocess.PIPE)
if REPORT_SLOW_COMMANDS:
- m = re.search("([0-9\.]+)user", p.stdout)
+ m = re.search(r"([0-9\.]+)user", p.stdout)
assert m, p.stdout
t = float(m.group(1))
if t > 1.0: