ttfw: Fix the build directory detection when using the default build/ dir for binaries

This commit is contained in:
Angus Gratton 2019-12-11 17:38:35 +11:00 committed by Angus Gratton
parent b20eaf3306
commit 18853ae509

View file

@ -383,7 +383,7 @@ class UT(IDFApp):
path = os.path.join(self.idf_path, app_path)
default_build_path = os.path.join(path, "build")
if os.path.exists(default_build_path):
return path
return default_build_path
# first try to get from build folder of unit-test-app
path = os.path.join(self.idf_path, "tools", "unit-test-app", "build")