Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions testing/fuchsia/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,12 @@ fuchsia_ctl() {
}

reboot() {
fuchsia_ctl ssh \
--timeout-seconds $ssh_timeout_seconds \
--identity-file $pkey \
-c "log_listener --dump_logs yes --file /tmp/log.txt"
# As we are not using recipes we don't have a way to know the location
# to upload the log to isolated. We are saving the log to a file to avoid dart
# hanging when running the process and then just using printing the content to
# the console.
fuchsia_ctl ssh \
--timeout-seconds $ssh_timeout_seconds \
--identity-file $pkey \
-c "cat /tmp/log.txt"


kill -9 $PID
cat /tmp/log.txt
echo "$(date) START:REBOOT ----------------------------------------"
# note: this will set an exit code of 255, which we can ignore.
fuchsia_ctl ssh \
Expand All @@ -82,6 +74,9 @@ for i in {1..10}; do
--identity-file $pkey \
-c "echo up" && break || sleep 15;
done
rm -rf /tmp/log.txt
fuchsia_ctl ssh --timeout-seconds 1800 --identity-file $pkey -c "log_listener" --log-file /tmp/log.txt &
PID=$!
echo "$(date) END:WAIT_DEVICE_READY ---------------------------------"

echo "$(date) START:EXTRACT_PACKAGES -------------------------------"
Expand Down