@@ -11,28 +11,24 @@ function teardown() {
1111 teardown_busybox
1212}
1313
14- function startup_events() {
15- (" $RUNC " events test_busybox > events.log)
16- }
17-
1814@test " events --stats" {
1915 # start busybox detached
20- run " $RUNC " start -d --console /dev/pts/ptmx test_busybox
16+ runc start -d --console /dev/pts/ptmx test_busybox
2117 [ " $status " -eq 0 ]
2218
2319 # check state
2420 wait_for_container 15 1 test_busybox
2521
2622 # generate stats
27- run " $RUNC " events --stats test_busybox
23+ runc events --stats test_busybox
2824 [ " $status " -eq 0 ]
2925 [[ " ${lines[0]} " == [\{ ]" \" type\" " [:]" \" stats\" " [,]" \" id\" " [:]" \" test_busybox\" " [,]* ]]
3026 [[ " ${lines[0]} " == * " data" * ]]
3127}
3228
3329@test " events --interval default " {
3430 # start busybox detached
35- run " $RUNC " start -d --console /dev/pts/ptmx test_busybox
31+ runc start -d --console /dev/pts/ptmx test_busybox
3632 [ " $status " -eq 0 ]
3733
3834 # check state
@@ -42,7 +38,7 @@ function startup_events() {
4238 # the first sub process is an event logger that sends stats events to events.log
4339 # the second sub process waits for an event that incudes test_busybox then
4440 # kills the test_busybox container which causes the event logger to exit
45- (" $RUNC " events test_busybox > events.log) &
41+ (__runc events test_busybox > events.log) &
4642 (
4743 retry 10 1 eval " grep -q 'test_busybox' events.log"
4844 teardown_running_container test_busybox
@@ -59,7 +55,7 @@ function startup_events() {
5955
6056@test " events --interval 1s " {
6157 # start busybox detached
62- run " $RUNC " start -d --console /dev/pts/ptmx test_busybox
58+ runc start -d --console /dev/pts/ptmx test_busybox
6359 [ " $status " -eq 0 ]
6460
6561 # check state
@@ -70,7 +66,7 @@ function startup_events() {
7066 # the second sub process tries 3 times for an event that incudes test_busybox
7167 # pausing 1s between each attempt then kills the test_busybox container which
7268 # causes the event logger to exit
73- (" $RUNC " events --interval 1s test_busybox > events.log) &
69+ (__runc events --interval 1s test_busybox > events.log) &
7470 (
7571 retry 3 1 eval " grep -q 'test_busybox' events.log"
7672 teardown_running_container test_busybox
@@ -85,7 +81,7 @@ function startup_events() {
8581
8682@test " events --interval 100ms " {
8783 # start busybox detached
88- run " $RUNC " start -d --console /dev/pts/ptmx test_busybox
84+ runc start -d --console /dev/pts/ptmx test_busybox
8985 [ " $status " -eq 0 ]
9086
9187 # check state
@@ -99,7 +95,7 @@ function startup_events() {
9995 # the second sub process tries 3 times for an event that incudes test_busybox
10096 # pausing 100s between each attempt then kills the test_busybox container which
10197 # causes the event logger to exit
102- (" $RUNC " events --interval 100ms test_busybox > events.log) &
98+ (__runc events --interval 100ms test_busybox > events.log) &
10399 (
104100 retry 3 0.100 eval " grep -q 'test_busybox' events.log"
105101 teardown_running_container test_busybox
0 commit comments