Skip to content

Commit

Permalink
feat(kubectl-trace): only push images on success
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Fontana <lo@linux.com>
  • Loading branch information
fntlnz committed Jan 8, 2019
1 parent 8c62a48 commit 9cbfd9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ script:
- make test
- make _output/bin/kubectl-trace
- make integration
after_success:
- ./hack/release-image.sh
2 changes: 1 addition & 1 deletion integration/cmd_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func (k *KubectlTraceSuite) TestRunNode(c *check.C) {

nodeName := nodes[0].String()
bpftraceProgram := `kprobe:do_sys_open { printf("%s: %s\n", comm, str(arg1)) }'`
out := k.KubectlTraceCmd(c, "run", "-e", bpftraceProgram, nodeName, "-a")
out := k.KubectlTraceCmd(c, "run", "-e", bpftraceProgram, nodeName)
match, err := regexp.MatchString("trace (\\w+-){4}\\w+ created", out)
c.Assert(err, check.IsNil)
c.Assert(match, check.Equals, true)
Expand Down

0 comments on commit 9cbfd9c

Please sign in to comment.