Merge lp:~asac/lava-android-test/install-prep-4bench.remove-wallpaper into lp:lava-android-test

Proposed by Alexander Sack
Status: Merged
Merged at revision: 170
Proposed branch: lp:~asac/lava-android-test/install-prep-4bench.remove-wallpaper
Merge into: lp:lava-android-test
Diff against target: 42 lines (+38/-0)
1 file modified
lava_android_test/test_definitions/install_prep_4bench.py (+38/-0)
To merge this branch: bzr merge lp:~asac/lava-android-test/install-prep-4bench.remove-wallpaper
Reviewer Review Type Date Requested Status
Yongqin Liu Approve
vishal Pending
Review via email: mp+110521@code.launchpad.net

Description of the change

add install prep step for benchmarking; allow user to prepare android lava install for a benchmarking TEST_PLAN.

goal is:

TEST_PLAN=install-prep-4bench,[reboot],sleep,0xbench,0xbench,0xbench,[reboot],sleep,v8,v8,v8,...

To post a comment you must log in.
Revision history for this message
Alexander Sack (asac) wrote :

as usual, be double careful of the code. it was not run. thanks for helping me test and get this in.

170. By Alexander Sack

add install-prep-4bench test: prepares system install for benchmarking; for now remove wallpaper

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

31 +ADB_SHELL_STEPS = ['rm -f /data/system/wallpaper_info.xml', "echo install_prep_4bench.wallpaper: PASS"]
because the rm in android does not support the -f option, so we need to change it to:
ADB_SHELL_STEPS = ['rm /data/system/wallpaper_info.xml', "echo install_prep_4bench.wallpaper: PASS"]

I have tested it, and after the test, the files does not /data/system/wallpaper_info.xml again.
But there seems on change on the wallpaper except we do the reboot.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'lava_android_test/test_definitions/install_prep_4bench.py'
2--- lava_android_test/test_definitions/install_prep_4bench.py 1970-01-01 00:00:00 +0000
3+++ lava_android_test/test_definitions/install_prep_4bench.py 2012-06-15 13:32:17 +0000
4@@ -0,0 +1,38 @@
5+# Copyright (c) 2012 Linaro
6+
7+# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
8+#
9+# This file is part of LAVA Android Test.
10+#
11+#
12+# This program is free software: you can redistribute it and/or modify
13+# it under the terms of the GNU General Public License as published by
14+# the Free Software Foundation, either version 3 of the License, or
15+# (at your option) any later version.
16+#
17+# This program is distributed in the hope that it will be useful,
18+# but WITHOUT ANY WARRANTY; without even the implied warranty of
19+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+# GNU General Public License for more details.
21+#
22+# You should have received a copy of the GNU General Public License
23+# along with this program. If not, see <http://www.gnu.org/licenses/>.
24+
25+import lava_android_test.config
26+import lava_android_test.testdef
27+
28+test_name = 'install_prep_4bench'
29+
30+INSTALL_STEPS_ADB_PRE = []
31+ADB_SHELL_STEPS = ['rm -f /data/system/wallpaper_info.xml', "echo install_prep_4bench.wallpaper: PASS"]
32+PATTERN = "^\s*(?P<test_case_id>[^:]+?):\s+(?P<result>(PASS|FAIL)?)\s*$"
33+
34+inst = lava_android_test.testdef.AndroidTestInstaller(
35+ steps_adb_pre=INSTALL_STEPS_ADB_PRE)
36+run = lava_android_test.testdef.AndroidTestRunner(
37+ adbshell_steps=ADB_SHELL_STEPS)
38+parser = lava_android_test.testdef.AndroidTestParser(PATTERN)
39+testobj = lava_android_test.testdef.AndroidTest(testname=test_name,
40+ installer=inst,
41+ runner=run,
42+ parser=parser)

Subscribers

People subscribed via source and target branches