cpu/esp_common: Set RIOT_TEST_TIMEOUT with conditional expansion

This commit is contained in:
Leandro Lanzieri 2020-03-10 16:03:36 +01:00
parent 56972af3b4
commit afc0ad4d57
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3

View File

@ -132,11 +132,7 @@ else
FFLAGS += 0x10000 $(FLASHFILE).bin
endif
# NOTE: These checks can be turned into normal conditionals when #9913 is fixed
# increase the test timeout for file system tests that use the SPI flash drive
ifneq (,$(filter spiffs,$(USEMODULE)))
export RIOT_TEST_TIMEOUT = 120
endif
ifneq (,$(filter littlefs,$(USEMODULE)))
export RIOT_TEST_TIMEOUT = 120
endif
RIOT_TEST_TIMEOUT = $(if $(filter spiffs littlefs,$(USEMODULE)),120)
$(call target-export-variables,test,RIOT_TEST_TIMEOUT)