@@ -89,8 +89,6 @@ function runc_restore_with_pipes() {
8989 echo " __runc restore $name failed (status: $ret )"
9090 exec {err_w}>& -
9191 cat < & ${err_r}
92- echo " CRIU log errors (if any):"
93- grep -B 5 Error " $workdir " /* .log ./image-dir/* .log || true
9492 fail " runc restore failed"
9593 fi
9694
@@ -110,15 +108,13 @@ function simple_cr() {
110108 for _ in $( seq 2) ; do
111109 # checkpoint the running container
112110 runc " $@ " checkpoint --work-path ./work-dir test_busybox
113- grep -B 5 Error ./work-dir/dump.log || true
114111 [ " $status " -eq 0 ]
115112
116113 # after checkpoint busybox is no longer running
117114 testcontainer test_busybox checkpointed
118115
119116 # restore from checkpoint
120117 runc " $@ " restore -d --work-path ./work-dir --console-socket " $CONSOLE_SOCKET " test_busybox
121- grep -B 5 Error ./work-dir/restore.log || true
122118 [ " $status " -eq 0 ]
123119
124120 # busybox should be back up and running
@@ -192,7 +188,6 @@ function simple_cr() {
192188 mkdir image-dir
193189 mkdir work-dir
194190 runc checkpoint --parent-path ../parent-dir --work-path ./work-dir --image-path ./image-dir test_busybox
195- grep -B 5 Error ./work-dir/dump.log || true
196191 [ " $status " -eq 0 ]
197192
198193 # check parent path is valid
@@ -242,8 +237,6 @@ function simple_cr() {
242237 exec {lazy_w}>& -
243238 # shellcheck disable=SC2116,SC2086
244239 out=$( echo $out ) # rm newlines
245- # show errors if there are any before we fail
246- grep -B5 Error ./work-dir/dump.log || true
247240 # expecting \0 which od prints as
248241 [ " $out " = " 0000000 000000 0000001" ]
249242
@@ -301,15 +294,13 @@ function simple_cr() {
301294 # checkpoint the running container; this automatically tells CRIU to
302295 # handle the network namespace defined in config.json as an external
303296 runc checkpoint --work-path ./work-dir test_busybox
304- grep -B 5 Error ./work-dir/dump.log || true
305297 [ " $status " -eq 0 ]
306298
307299 # after checkpoint busybox is no longer running
308300 testcontainer test_busybox checkpointed
309301
310302 # restore from checkpoint; this should restore the container into the existing network namespace
311303 runc restore -d --work-path ./work-dir --console-socket " $CONSOLE_SOCKET " test_busybox
312- grep -B 5 Error ./work-dir/restore.log || true
313304 [ " $status " -eq 0 ]
314305
315306 # busybox should be back up and running
@@ -352,7 +343,6 @@ function simple_cr() {
352343
353344 # checkpoint the running container
354345 runc checkpoint --work-path ./work-dir test_busybox
355- grep -B 5 Error ./work-dir/dump.log || true
356346 [ " $status " -eq 0 ]
357347 run ! test -f ./work-dir/" $tmplog1 "
358348 test -f ./work-dir/" $tmplog2 "
@@ -363,7 +353,6 @@ function simple_cr() {
363353 test -f ./work-dir/" $tmplog2 " && unlink ./work-dir/" $tmplog2 "
364354 # restore from checkpoint
365355 runc restore -d --work-path ./work-dir --console-socket " $CONSOLE_SOCKET " test_busybox
366- grep -B 5 Error ./work-dir/restore.log || true
367356 [ " $status " -eq 0 ]
368357 run ! test -f ./work-dir/" $tmplog1 "
369358 test -f ./work-dir/" $tmplog2 "
@@ -397,7 +386,6 @@ function simple_cr() {
397386
398387 # checkpoint the running container
399388 runc checkpoint --work-path ./work-dir test_busybox
400- grep -B 5 Error ./work-dir/dump.log || true
401389 [ " $status " -eq 0 ]
402390
403391 # after checkpoint busybox is no longer running
@@ -409,7 +397,6 @@ function simple_cr() {
409397
410398 # restore from checkpoint
411399 runc restore -d --work-path ./work-dir --console-socket " $CONSOLE_SOCKET " test_busybox
412- grep -B 5 Error ./work-dir/restore.log || true
413400 [ " $status " -eq 0 ]
414401
415402 # busybox should be back up and running
@@ -429,7 +416,6 @@ function simple_cr() {
429416 test -d " $orig_path "
430417
431418 runc checkpoint --work-path ./work-dir --manage-cgroups-mode ignore test_busybox
432- grep -B 5 Error ./work-dir/dump.log || true
433419 [ " $status " -eq 0 ]
434420 testcontainer test_busybox checkpointed
435421 # Check that the cgroup is gone.
@@ -439,7 +425,6 @@ function simple_cr() {
439425 set_cgroups_path # Changes the path.
440426 runc restore -d --manage-cgroups-mode ignore --pid-file pid \
441427 --work-path ./work-dir --console-socket " $CONSOLE_SOCKET " test_busybox
442- grep -B 5 Error ./work-dir/restore.log || true
443428 [ " $status " -eq 0 ]
444429 testcontainer test_busybox running
445430
0 commit comments