Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(910)

Issue 5303005: Add support for saving VM state after test failure (Closed)

Created:
10 years, 1 month ago by thieule
Modified:
9 years, 4 months ago
CC:
chromium-os-reviews_chromium.org, truty+cc_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, petkov+cc_chromium.org, ericli
Visibility:
Public.

Description

Add support for saving VM state after test failure BUG=chromium-os:9577 TEST=Run suite_Smoke with failure and without failure, load VM state to ensure correctness Change-Id: I342fd7077f35fa908f0d4e90f7c27e83f2992b07 Change-Id: I385a9614ed6ce953f33ad1830e0f566451903dd7 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=1904d00

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix code review feedbacks #

Total comments: 8

Patch Set 3 : Move save VM state code to be site specific #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -2 lines) Patch
M client/bin/site_job.py View 1 2 2 chunks +12 lines, -1 line 0 comments Download
M client/bin/site_utils.py View 1 2 2 chunks +24 lines, -1 line 1 comment Download

Messages

Total messages: 11 (0 generated)
thieule
This is the test CL associated with the save VM support. PTAL
10 years, 1 month ago (2010-11-24 00:55:08 UTC) #1
sosa
You may want to include @petkov or @kmixter for these changes. Also not sure about ...
10 years, 1 month ago (2010-11-24 01:02:54 UTC) #2
thieule
+petkov +kmixter Can you guys PTAL? In a previous CL (http://codereview.chromium.org/5174009/), I've added the ability ...
10 years, 1 month ago (2010-11-24 01:09:13 UTC) #3
ericli
Please add the new function to client/bin/site_utils.py and keep the vanilla state of client/common_lib/utils.py. Thanks. ...
10 years, 1 month ago (2010-11-24 01:18:19 UTC) #4
thieule
I've modified client/common_lib/test.py to invoke save_vm_state() which is currently defined in client/common_lib/utils.py. It seems strange ...
10 years, 1 month ago (2010-11-24 01:28:21 UTC) #5
ericli
There are two problems. 1. In high level, there is the base client/common_lib, and two ...
10 years, 1 month ago (2010-11-24 02:30:58 UTC) #6
thieule
Fix code review feedbacks. PTAL http://codereview.chromium.org/5303005/diff/1/client/common_lib/test.py File client/common_lib/test.py (right): http://codereview.chromium.org/5303005/diff/1/client/common_lib/test.py#newcode426 client/common_lib/test.py:426: checkpoint_name = "%s-%s" % ...
10 years, 1 month ago (2010-11-24 18:00:45 UTC) #7
petkov
a couple of nits. eric -- i assume we won't be able to upstream the ...
10 years ago (2010-11-24 20:36:53 UTC) #8
thieule
Moved save VM state code to be site specific. Addressed more code review feedbacks. PTAL ...
10 years ago (2010-11-30 23:05:08 UTC) #9
Chris Masone
LGTM slick little change.
10 years ago (2010-12-01 00:09:51 UTC) #10
petkov
10 years ago (2010-12-01 00:12:43 UTC) #11
LGTM

http://codereview.chromium.org/5303005/diff/21001/client/bin/site_utils.py
File client/bin/site_utils.py (right):

http://codereview.chromium.org/5303005/diff/21001/client/bin/site_utils.py#ne...
client/bin/site_utils.py:59: if proc.find('QEMU') >= 0 and
os.path.exists('/dev/ttyUSB0'):
I think

if 'QEMU' in proc and...

is the preferred syntax by some style guidelines...

Powered by Google App Engine
This is Rietveld 408576698