mirror of
https://github.com/kidoman/embd
synced 2024-12-22 04:40:04 +01:00
remove trailing white space
This commit is contained in:
parent
624ce1bb16
commit
1ebbe540a5
@ -22,7 +22,7 @@ func execOutput(name string, arg ...string) (output string, err error) {
|
||||
if out, err = exec.Command(name, arg...).Output(); err != nil {
|
||||
return
|
||||
}
|
||||
output = string(out)
|
||||
output = strings.TrimSpace(string(out))
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -7,14 +7,6 @@ func TestKernelVersionParse(t *testing.T) {
|
||||
versionStr string
|
||||
major, minor, patch int
|
||||
}{
|
||||
{
|
||||
"3.8",
|
||||
3, 8, 0,
|
||||
},
|
||||
{
|
||||
"3.7",
|
||||
3, 7, 0,
|
||||
},
|
||||
{
|
||||
"3.8.2",
|
||||
3, 8, 2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user