tests/int/events: rm unneeded eval

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2021-01-20 19:45:24 -08:00
parent 497661406e
commit 76532fac03
+3 -3
View File
@@ -47,7 +47,7 @@ function test_events() {
# 2. Waits for an event that includes test_busybox then kills the
# test_busybox container which causes the event logger to exit.
(
retry 10 "$retry_every" eval "grep -q 'test_busybox' events.log"
retry 10 "$retry_every" grep -q test_busybox events.log
teardown_running_container test_busybox
) &
wait # for both subshells to finish
@@ -89,10 +89,10 @@ function test_events() {
# and waits for an oom event
(__runc events test_busybox >events.log) &
(
retry 10 1 eval "grep -q 'test_busybox' events.log"
retry 10 1 grep -q test_busybox events.log
# shellcheck disable=SC2016
__runc exec -d test_busybox sh -c 'test=$(dd if=/dev/urandom ibs=5120k)'
retry 10 1 eval "grep -q 'oom' events.log"
retry 10 1 grep -q oom events.log
__runc delete -f test_busybox
) &
wait # wait for the above sub shells to finish