refactor build/install/run pipeline

This commit is contained in:
Li Jie
2025-09-06 17:58:40 +08:00
parent da9865104f
commit 7cad146013
4 changed files with 214 additions and 213 deletions

View File

@@ -4,7 +4,6 @@
package build
import (
"strings"
"testing"
)
@@ -246,12 +245,7 @@ func TestGenOutputs(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
// Determine input binFmt - remove -img suffix if present as it will be added by the code
inputBinFmt := tt.wantBinFmt
if strings.HasSuffix(inputBinFmt, "-img") && tt.wantFileFmt == "img" {
inputBinFmt = strings.TrimSuffix(inputBinFmt, "-img")
}
result, err := GenOutputs(tt.conf, tt.pkgName, tt.multiPkg, tt.emulator, inputBinFmt)
result, err := genOutputs(tt.conf, tt.pkgName, tt.multiPkg, tt.crossCompile)
if err != nil {
t.Fatalf("GenOutputs() error = %v", err)
}