~le-chi-thu/lava-test/add-verbose-argument

« back to all changes in this revision

Viewing changes to lava_test/test_definitions/smem.py

  • Committer: Paul Larson
  • Date: 2011-10-20 17:54:39 UTC
  • mfrom: (100.2.7 override-test-options)
  • Revision ID: paul.larson@canonical.com-20111020175439-zccajl7m53sy6jdk
Allow overriding default args for tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
from lava_test.core.runners import TestRunner
19
19
from lava_test.core.tests import Test
20
20
 
21
 
 
22
 
RUNSTEPS = ['smem -w | tail -n 3']
 
21
DEFAULT_OPTIONS = ""
 
22
RUNSTEPS = ['smem -w $(OPTIONS) | tail -n 3']
23
23
PATTERN = "^(?P<test_case_id>(\w+\s)+)\s\s+(?P<measurement>\d+)"
24
24
DEPS = ['smem']
25
25
 
 
26
 
26
27
smeminst = TestInstaller(deps=DEPS)
27
 
smemrun = TestRunner(RUNSTEPS)
 
28
smemrun = TestRunner(RUNSTEPS,default_options=DEFAULT_OPTIONS)
28
29
smemparser = TestParser(PATTERN,
29
30
               appendall={'units':'KB', 'result':'pass'})
30
31
testobj = Test(test_id="smem", installer=smeminst,