Unverified Commit bbfdc043 authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

Added 'sketch_path' to build properties (#2372)

parent a1fad63c
......@@ -131,7 +131,9 @@ func NewBuilder(
if boardBuildProperties != nil {
buildProperties.Merge(boardBuildProperties)
}
if sk != nil {
buildProperties.SetPath("sketch_path", sk.FullPath)
}
if buildPath != nil {
buildProperties.SetPath("build.path", buildPath)
}
......
......@@ -48,6 +48,7 @@ func TestCompileShowProperties(t *testing.T) {
require.NoError(t, err, "Output must be a clean property list")
require.Empty(t, stderr)
require.True(t, props.ContainsKey("archive_file_path"))
require.True(t, props.ContainsKey("sketch_path"))
require.NotContains(t, props.Get("archive_file_path"), "{build.path}")
// Test --show-properties --format JSON output is clean
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment