tools/ci: fix import error when running ttfw tests locally

This commit is contained in:
Ivan Grokhotkov
2020-09-30 22:41:53 +02:00
parent b1d64d1a61
commit 2218ac91c2

View File

@@ -17,7 +17,11 @@ except ImportError:
import gitlab_api
from tiny_test_fw.Utility import CIAssignTest
from idf_py_actions.constants import SUPPORTED_TARGETS, PREVIEW_TARGETS
try:
from idf_py_actions.constants import SUPPORTED_TARGETS, PREVIEW_TARGETS
except ImportError:
SUPPORTED_TARGETS = []
PREVIEW_TARGETS = []
IDF_PATH_FROM_ENV = os.getenv('IDF_PATH')