...

Text file src/github.com/opencontainers/runc/tests/integration/start.bats

Documentation: github.com/opencontainers/runc/tests/integration

     1#!/usr/bin/env bats
     2
     3load helpers
     4
     5function setup() {
     6	setup_busybox
     7}
     8
     9function teardown() {
    10	teardown_bundle
    11}
    12
    13@test "runc start" {
    14	runc create --console-socket "$CONSOLE_SOCKET" test_busybox
    15	[ "$status" -eq 0 ]
    16
    17	testcontainer test_busybox created
    18
    19	# start container test_busybox
    20	runc start test_busybox
    21	[ "$status" -eq 0 ]
    22
    23	testcontainer test_busybox running
    24
    25	# delete test_busybox
    26	runc delete --force test_busybox
    27
    28	runc state test_busybox
    29	[ "$status" -ne 0 ]
    30}

View as plain text