CAN: Reenable example tests

This commit updates the CAN example tests and updates the job
and environment labels in the target-test.yml
This commit is contained in:
Darian Leung 2019-10-25 14:10:06 +08:00
parent 3b91c1f4b2
commit 81ddd9e291
4 changed files with 12 additions and 6 deletions

View File

@ -20,7 +20,7 @@ STR_EXPECT = ("CAN Alert and Recovery: Driver installed", "CAN Alert and Recover
EXPECT_TIMEOUT = 20
@IDF.idf_example_test(env_tag='Example_CAN1', ignore=True)
@IDF.idf_example_test(env_tag='Example_CAN1')
def test_can_alert_and_recovery_example(env, extra_data):
dut = env.get_dut('dut1', 'examples/peripherals/can/can_alert_and_recovery', dut_class=ESP32DUT)
dut.start_app()

View File

@ -37,7 +37,7 @@ def dut_thread_callback(**kwargs):
result[0] = True
@IDF.idf_example_test(env_tag='Example_CAN2', ignore=True)
@IDF.idf_example_test(env_tag='Example_CAN2')
def test_can_network_example(env, extra_data):
# Get device under test. "dut1", "dut2", and "dut3" must be properly defined in EnvConfig

View File

@ -20,9 +20,9 @@ STR_EXPECT = ("CAN Self Test: Driver installed", "CAN Self Test: Driver uninstal
EXPECT_TIMEOUT = 20
@IDF.idf_example_test(env_tag='Example_CAN1', ignore=True)
@IDF.idf_example_test(env_tag='Example_CAN1')
def test_can_self_test_example(env, extra_data):
# Get device under test, flash and start example. "dut4" must be defined in EnvConfig
# Get device under test, flash and start example. "dut1" must be defined in EnvConfig
dut = env.get_dut('dut1', 'examples/peripherals/can/can_self_test', dut_class=ESP32DUT)
dut.start_app()

View File

@ -169,11 +169,17 @@ example_test_002:
- ESP32
- Example_SDIO
example_test_004:
example_test_004A:
extends: .example_test_template
tags:
- ESP32
- Example_CAN
- Example_CAN1
example_test_004B:
extends: .example_test_template
tags:
- ESP32
- Example_CAN2
example_test_005:
extends: .example_test_template