Skip to content

Commit d15661d

Browse files
authored
Merge pull request #1131 from datawolf/add-integration-test-for-list
add test cases for list command
2 parents 1ab9d5e + 5aef160 commit d15661d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration/list.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ function teardown() {
3838
[[ "${lines[2]}" == *"test_box2"*[0-9]*"running"*$BUSYBOX_BUNDLE*[0-9]* ]]
3939
[[ "${lines[3]}" == *"test_box3"*[0-9]*"running"*$BUSYBOX_BUNDLE*[0-9]* ]]
4040

41+
ROOT=$HELLO_BUNDLE runc list -q
42+
[ "$status" -eq 0 ]
43+
[[ "${lines[0]}" == "test_box1" ]]
44+
[[ "${lines[1]}" == "test_box2" ]]
45+
[[ "${lines[2]}" == "test_box3" ]]
46+
4147
ROOT=$HELLO_BUNDLE runc list --format table
4248
[ "$status" -eq 0 ]
4349
[[ ${lines[0]} =~ ID\ +PID\ +STATUS\ +BUNDLE\ +CREATED+ ]]

0 commit comments

Comments
 (0)