summaryrefslogtreecommitdiff
path: root/test/timer_jump.py
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-07-13 16:15:15 +0800
committerGerrit <chrome-bot@google.com>2012-07-13 02:10:46 -0700
commitdbefb29f028108c6faadb40acebf942dfe51b92c (patch)
treef1faedf8b99ac05ebb186e9a11cc64f94d3033bb /test/timer_jump.py
parent1bd61468929bdd4907d02d56b9144d654b6ad272 (diff)
downloadchrome-ec-dbefb29f028108c6faadb40acebf942dfe51b92c.tar.gz
Fix unit tests
Recently, there have been several changes to LPC and host command modules. This CL fixes unit tests after these changes. BUG=none TEST=All test passed. Change-Id: I263716899af78a61e324fcd0b2636b948617a264 Reviewed-on: https://gerrit.chromium.org/gerrit/27354 Reviewed-by: Rong Chang <rongchang@chromium.org> Tested-by: Vic Yang <victoryang@chromium.org> Commit-Ready: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'test/timer_jump.py')
-rw-r--r--test/timer_jump.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/timer_jump.py b/test/timer_jump.py
index 2f2302e327..07b67f1793 100644
--- a/test/timer_jump.py
+++ b/test/timer_jump.py
@@ -11,15 +11,18 @@ DELAY = 5
ERROR_MARGIN = 0.5
def test(helper):
- helper.wait_output("Console is enabled")
- helper.ec_command("sysjump ro")
- helper.wait_output("Console is enabled")
+ helper.wait_output("idle task started")
+ helper.ec_command("sysinfo")
+ copy = helper.wait_output("Copy:\s+(?P<c>\S+)", use_re=True)["c"]
+ if copy != "RO":
+ helper.ec_command("sysjump ro")
+ helper.wait_output("idle task started")
helper.ec_command("gettime")
ec_start_time = helper.wait_output("Time: 0x[0-9a-f]* = (?P<t>[\d\.]+) s",
use_re=True)["t"]
time.sleep(DELAY)
helper.ec_command("sysjump a")
- helper.wait_output("Console is enabled")
+ helper.wait_output("idle task started")
helper.ec_command("gettime")
ec_end_time = helper.wait_output("Time: 0x[0-9a-f]* = (?P<t>[\d\.]+) s",
use_re=True)["t"]