summaryrefslogtreecommitdiffstats
path: root/test/exec_test.go
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-08-21 17:56:10 +0200
committerClément Bénier <clement.benier@iot.bzh>2018-08-21 17:56:10 +0200
commitb1d091a8c6b2269601a1683e963d0e382cd0f7f6 (patch)
treeec60f14ec47211e929d144bde128fbbff5f7c0dc /test/exec_test.go
parent4192072863ac0997b0c3cb4131ea913e6f85f83e (diff)
test logs: hide log
logs are printable with VERBOSE != "" Change-Id: I170aed2e73db673ba6276410b1dddd3389239457 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'test/exec_test.go')
-rw-r--r--test/exec_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/exec_test.go b/test/exec_test.go
index 8759dbd..1ab781a 100644
--- a/test/exec_test.go
+++ b/test/exec_test.go
@@ -29,7 +29,7 @@ import (
)
func InitExec(t *testing.T) string {
- t.Logf("Create helloworld directory with app-templates")
+ Debugf(t, "Create helloworld directory with app-templates")
/*copy helloworld from fixtures to envRootCfgDir*/
helloworldDir := path.Join(os.Getenv(envRootCfgDir), "helloworld")
cmd := exec.Command("cp", "-r", helloworldFixturesDir, helloworldDir)
@@ -115,7 +115,7 @@ func TestExec(t *testing.T) {
Cmd: cmd,
}
var execRes xsapiv1.ExecArgs
- t.Logf("exec cmake cmd(%v)", cmd)
+ Debugf(t, "exec cmake cmd(%v)", cmd)
assert.Nil(t, HTTPCli.Post("/exec", exec, &execRes))
flushChannelExec(chExec, 1000) //waiting for execOutMsg
@@ -131,12 +131,12 @@ func TestExec(t *testing.T) {
cmd = cmd + "make"
exec.Cmd = cmd
/*post exec cmd make*/
- t.Logf("exec make cmd(%v)", cmd)
+ Debugf(t, "exec make cmd(%v)", cmd)
assert.Nil(t, HTTPCli.Post("/exec", exec, &execRes))
flushChannelExec(chExec, 1000) //waiting for execOutMsg
/*check if helloworld.so exists*/
- t.Log("check that helloworld.so exists")
+ Debug(t, "check that helloworld.so exists")
_, err := os.Stat(path.Join(fPrj.ClientPath, "build/helloworld/helloworld.so"))
assert.Nil(t, err)