deviceinfo: clean up unused MesaDriver (MR 45)
This deviceinfo var is no longer used in mkinitfs (see previous commits).
This commit is contained in:
@@ -18,7 +18,6 @@ import (
|
|||||||
type DeviceInfo struct {
|
type DeviceInfo struct {
|
||||||
InitfsCompression string
|
InitfsCompression string
|
||||||
InitfsExtraCompression string
|
InitfsExtraCompression string
|
||||||
MesaDriver string
|
|
||||||
UbootBoardname string
|
UbootBoardname string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import (
|
|||||||
// Test ReadDeviceinfo and the logic of reading from multiple files
|
// Test ReadDeviceinfo and the logic of reading from multiple files
|
||||||
func TestReadDeviceinfo(t *testing.T) {
|
func TestReadDeviceinfo(t *testing.T) {
|
||||||
compression_expected := "gz -9"
|
compression_expected := "gz -9"
|
||||||
mesa_expected := "msm"
|
|
||||||
|
|
||||||
var devinfo DeviceInfo
|
var devinfo DeviceInfo
|
||||||
err := devinfo.ReadDeviceinfo("./test_resources/deviceinfo-missing")
|
err := devinfo.ReadDeviceinfo("./test_resources/deviceinfo-missing")
|
||||||
@@ -31,9 +30,6 @@ func TestReadDeviceinfo(t *testing.T) {
|
|||||||
if devinfo.InitfsCompression != compression_expected {
|
if devinfo.InitfsCompression != compression_expected {
|
||||||
t.Errorf("expected %q, got: %q", compression_expected, devinfo.InitfsCompression)
|
t.Errorf("expected %q, got: %q", compression_expected, devinfo.InitfsCompression)
|
||||||
}
|
}
|
||||||
if devinfo.MesaDriver != mesa_expected {
|
|
||||||
t.Errorf("expected %q, got: %q", mesa_expected, devinfo.MesaDriver)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test conversion of name to DeviceInfo struct field format
|
// Test conversion of name to DeviceInfo struct field format
|
||||||
@@ -73,7 +69,6 @@ func TestUnmarshal(t *testing.T) {
|
|||||||
// empty option
|
// empty option
|
||||||
{"InitfsCompression", "deviceinfo_initfs_compression=\"\"\n", ""},
|
{"InitfsCompression", "deviceinfo_initfs_compression=\"\"\n", ""},
|
||||||
// line with comment at the end
|
// line with comment at the end
|
||||||
{"MesaDriver", "deviceinfo_mesa_driver=\"panfrost\" # this is a nice driver", "panfrost"},
|
|
||||||
{"", "# this is a comment!\n", ""},
|
{"", "# this is a comment!\n", ""},
|
||||||
// empty lines are fine
|
// empty lines are fine
|
||||||
{"", "", ""},
|
{"", "", ""},
|
||||||
|
|||||||
Reference in New Issue
Block a user