Fix testConfig

pull/5116/head
josedonizetti 2019-08-19 20:35:59 -04:00
parent 06da850ed7
commit 15f6e90ce2
1 changed files with 5 additions and 3 deletions

View File

@ -19,6 +19,8 @@ limitations under the License.
package integration
import (
"strings"
"testing"
)
@ -39,9 +41,9 @@ func testConfig(t *testing.T) {
}
for _, test := range tests {
sshCmdOutput, stderr := mk.RunCommand(t.cmd)
if !strings.Contains(sshCmdOutput, t.output) {
t.Fatalf("ExpectedStr sshCmdOutput to be: %s. Output was: %s Stderr: %s", expectedStr, sshCmdOutput, stderr)
sshCmdOutput, stderr := mk.RunCommand(test.cmd, true)
if !strings.Contains(sshCmdOutput, test.output) {
t.Fatalf("ExpectedStr sshCmdOutput to be: %s. Output was: %s Stderr: %s", test.output, sshCmdOutput, stderr)
}
}
}