minor fixups
This commit is contained in:
16
packer/packerlib/ubuntu_test.go
Normal file
16
packer/packerlib/ubuntu_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package packerlib
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestJSONPath(t *testing.T) {
|
||||
baseName := "cm4-cluster-ubuntu-22.04.2"
|
||||
spec := UbuntuBoardSpec{
|
||||
ImageName: "cm4-cluster-ubuntu-22.04.2" + ".img",
|
||||
}
|
||||
|
||||
outPath := spec.JSONPath("")
|
||||
expected := baseName + ".json"
|
||||
if outPath != expected {
|
||||
t.Fatalf("bad JSON path name: have %s, expect %s", outPath, expected)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user