~linaro-validation/lava-android-test/trunk

« back to all changes in this revision

Viewing changes to lava_android_test/test_definitions/pm_qa.py

  • Committer: Yongqin Liu
  • Date: 2013-06-05 09:09:55 UTC
  • mfrom: (255.1.2 lava-android-test)
  • Revision ID: yongqin.liu@linaro.org-20130605090955-ib430hyxuuelostf
update some changes on the pm_qa test

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
**URL:** https://git.linaro.org/gitweb?p=tools/pm-qa.git;a=summary
25
25
 
26
 
**Default options:** None
 
26
**Default options:** /data/benchmark/pm-qa
27
27
"""
28
28
 
29
29
import os
30
30
import lava_android_test.testdef
31
31
from lava_android_test.config import get_config
32
32
 
 
33
DEFAULT_OPTIONS = '/data/benchmark/pm-qa'
33
34
test_name = 'pm_qa'
34
35
config = get_config()
35
36
curdir = os.path.realpath(os.path.dirname(__file__))
42
43
                                          test_sh_android_path),
43
44
                          'shell chmod 777 %s' % test_sh_android_path]
44
45
 
45
 
ADB_SHELL_STEPS = [test_sh_android_path]
 
46
ADB_SHELL_STEPS = ["%s $(OPTIONS)" % test_sh_android_path]
46
47
PATTERN = "^\s*(?P<test_case_id>\w+)=(?P<result>\w+)\s*$"
47
48
 
48
49
inst = lava_android_test.testdef.AndroidTestInstaller(
53
54
testobj = lava_android_test.testdef.AndroidTest(testname=test_name,
54
55
                                    installer=inst,
55
56
                                    runner=run,
56
 
                                    parser=parser)
 
57
                                    parser=parser,
 
58
                                    default_options=DEFAULT_OPTIONS)