Add esp32s2 support for panic test, run as default

pull/6365/head
Fu Hanxi 2020-12-03 16:33:32 +08:00
rodzic a5bcaea9cc
commit 2547670477
1 zmienionych plików z 17 dodań i 1 usunięć

Wyświetl plik

@ -234,9 +234,25 @@ class ESP32PanicTestDUT(ttfw_idf.ESP32DUT, PanicTestMixin):
return self.port return self.port
class ESP32S2PanicTestDUT(ttfw_idf.ESP32S2DUT, PanicTestMixin):
def get_gdb_remote(self):
return self.port
PANIC_TEST_DUT_DICT = {
'ESP32': ESP32PanicTestDUT,
'ESP32S2': ESP32S2PanicTestDUT
}
def panic_test(**kwargs): def panic_test(**kwargs):
""" Decorator for the panic tests, sets correct App and DUT classes """ """ Decorator for the panic tests, sets correct App and DUT classes """
return ttfw_idf.idf_custom_test(app=PanicTestApp, dut=ESP32PanicTestDUT, env_tag="test_jtag_arm", **kwargs) if 'target' not in kwargs:
kwargs['target'] = ['ESP32', 'ESP32S2']
if 'additional_duts' not in kwargs:
kwargs['additional_duts'] = PANIC_TEST_DUT_DICT
return ttfw_idf.idf_custom_test(app=PanicTestApp, env_tag="test_jtag_arm", **kwargs)
def get_dut(env, app_config_name, test_name, qemu_wdt_enable=False): def get_dut(env, app_config_name, test_name, qemu_wdt_enable=False):