Skip to content

Commit

Permalink
tiny-test-fw: filter examples with test level
Browse files Browse the repository at this point in the history
  • Loading branch information
heyinling authored and espressif-bot committed Jul 13, 2018
1 parent 23d98aa commit 5f26b36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/tiny-test-fw/IDF/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


def idf_example_test(app=Example, dut=IDFDUT, chip="ESP32",
module="examples", execution_time=1,
module="examples", execution_time=1, level="example",
**kwargs):
"""
decorator for testing idf examples (with default values for some keyword args).
Expand All @@ -31,12 +31,13 @@ def idf_example_test(app=Example, dut=IDFDUT, chip="ESP32",
:param chip: chip supported, string or tuple
:param module: module, string
:param execution_time: execution time in minutes, int
:param level: test level, could be used to filter test cases, string
:param kwargs: other keyword args
:return: test method
"""
# not use partial function as define as function support auto generating document
return TinyFW.test_method(app=app, dut=dut, chip=chip, module=module,
execution_time=execution_time, **kwargs)
execution_time=execution_time, level=level, **kwargs)


def log_performance(item, value):
Expand Down

0 comments on commit 5f26b36

Please sign in to comment.