forked from platformio/platformio-core
Construct build directory based on the build type // Resolve #4373
This commit is contained in:
1 parent
0da1a38df5
commit
b135a73945
14 files changed
+112
-105
No files matched your search
@@ -76,13 +76,18 @@ class NativeTestOutputReader:
|
||||
os.path.join(
|
||||
build_dir,
|
||||
self.test_runner.test_suite.env_name,
|
||||
"test",
|
||||
"program.exe" if IS_WINDOWS else "program",
|
||||
)
|
||||
]
|
||||
# if user changed PROGNAME
|
||||
if not os.path.exists(cmd[0]):
|
||||
build_data = load_build_metadata(
|
||||
os.getcwd(), self.test_runner.test_suite.env_name, cache=True
|
||||
None,
|
||||
self.test_runner.test_suite.env_name,
|
||||
cache=True,
|
||||
debug=not self.test_runner.options.without_debugging,
|
||||
test=True,
|
||||
)
|
||||
if build_data:
|
||||
cmd[0] = build_data["prog_path"]
|
||||
|
||||
Reference in new issue
Block a user