Skip to content

[test]cli_rich_container_test.go:151 failes to validate stdout #960

@faycheng

Description

@faycheng

Ⅰ. Issue Description

sometimes cli_rich_container_test.go:151 fails to validate stdout, here(tavis log) can give us more details.

err=
Command:  /usr/local/bin/pouch exec TestRichContainerInitdWorks ps -ef | grep /sbin/init | awk '{print $1}'
ExitCode: 0
Error:    <nil>
Stdout:   
Stderr:   
Failures:
Expected stdout to contain "1"
----------------------------------------------------------------------
FAIL: /go/src/github.com/alibaba/pouch/test/cli_rich_container_test.go:151: PouchRichContainerSuite.TestRichContainerInitdWorks
/go/src/github.com/alibaba/pouch/test/cli_rich_container_test.go:182:
    c.Assert(checkPidofProcessIsOne(funcname, "/sbin/init"), check.Equals, true)
... obtained bool = false
... expected bool = true

Ⅱ. Describe what happened

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • pouch version (use pouch version):
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions