From 27d74ce8b48449f0235c30137defa2f701356ec9 Mon Sep 17 00:00:00 2001 From: George Wright Date: Wed, 12 Feb 2020 15:09:38 -0800 Subject: [PATCH] Move log_listener call into the reboot trap (flutter/engine#16564) --- engine/src/flutter/testing/fuchsia/run_tests.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/testing/fuchsia/run_tests.sh b/engine/src/flutter/testing/fuchsia/run_tests.sh index 3cb3bc074b..c4c2f34a2e 100755 --- a/engine/src/flutter/testing/fuchsia/run_tests.sh +++ b/engine/src/flutter/testing/fuchsia/run_tests.sh @@ -25,6 +25,11 @@ else fi reboot() { + echo "Dumping system logs..." + + ./fuchsia_ctl -d $device_name ssh \ + -c "log_listener --dump_logs yes" + # note: this will set an exit code of 255, which we can ignore. ./fuchsia_ctl -d $device_name ssh -c "dm reboot-recovery" || true } @@ -69,7 +74,3 @@ done -t shell_tests \ -a "--gtest_filter=-ShellTest.HandlesActualIphoneXsInputEvents:ShellTest.CacheSkSLWorks:ShellTest.SetResourceCacheSize*:ShellTest.Screenshot:ShellTest.WaitForFirstFrameTimeout" -echo "Dumping system logs..." - -./fuchsia_ctl -d $device_name ssh \ - -c "log_listener --dump_logs yes"