Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit a5841be

Browse files
committed
integration: fix the wrong exitcode in execsignal testcase
Signed-off-by: fupan <[email protected]>
1 parent 335688f commit a5841be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

integration/hyper_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,10 @@ func (s *TestSuite) TestSendExecSignal(c *C) {
590590

591591
exitCode, err := s.client.Wait(cName, execId, false)
592592
c.Assert(err, IsNil)
593-
c.Assert(exitCode, Equals, int32(0))
593+
//in kata, the exitCode is the process's exit code,
594+
//thus, the process is killed with signal '9', its
595+
//exitcode is '127'.
596+
c.Assert(exitCode, Equals, int32(137))
594597
}
595598

596599
func (s *TestSuite) TestTTYResize(c *C) {

0 commit comments

Comments
 (0)