From c3dedb263a42e374fa7e0011a37d69d41342717f Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 16 Jan 2025 13:05:39 +0100 Subject: [PATCH] Fixed integration test --- commands/service_upload_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/service_upload_test.go b/commands/service_upload_test.go index 4a86a0f274b..e0f7ada23c4 100644 --- a/commands/service_upload_test.go +++ b/commands/service_upload_test.go @@ -132,10 +132,12 @@ func TestDetermineBuildPathAndSketchName(t *testing.T) { } func TestUploadPropertiesComposition(t *testing.T) { - pmb := packagemanager.NewBuilder(nil, nil, nil, nil, nil, "test", downloader.GetDefaultConfig()) - errs := pmb.LoadHardwareFromDirectory(paths.New("testdata", "upload", "hardware")) + userdir := paths.New("testdata", "upload") + hwdir := userdir.Join("hardware") + pmb := packagemanager.NewBuilder(nil, nil, hwdir, nil, nil, "test", downloader.GetDefaultConfig()) + errs := pmb.LoadHardwareFromDirectory(hwdir) require.Len(t, errs, 0) - buildPath1 := paths.New("testdata", "upload", "build_path_1") + buildPath1 := userdir.Join("build_path_1") logrus.SetLevel(logrus.TraceLevel) type test struct { importDir *paths.Path