mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-11-27 07:06:54 +01:00
Fixed TestExec
This commit is contained in:
@@ -9,12 +9,12 @@ import (
|
|||||||
|
|
||||||
func TestExec(t *testing.T) {
|
func TestExec(t *testing.T) {
|
||||||
testCommand := "echo"
|
testCommand := "echo"
|
||||||
testArguments := []string{"'Hello World'"}
|
testArguments := []string{"Hello World"}
|
||||||
|
|
||||||
result := Exec("/", testCommand, testArguments)
|
result := Exec("/", testCommand, testArguments)
|
||||||
|
|
||||||
if result != "Hello World" {
|
if result != "Hello World" {
|
||||||
t.Log("Expected 'Hellow World' but got ", result)
|
t.Log("Expected 'Hello World' but got ", result)
|
||||||
t.Fail()
|
t.Fail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user