Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
f35a8b74
Unverified
Commit
f35a8b74
authored
Aug 27, 2020
by
Casey Hillers
Committed by
GitHub
Aug 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync with engine run_tests script (#64670)
parent
53a225bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
run_fuchsia_tests.sh
dev/bots/run_fuchsia_tests.sh
+28
-3
No files found.
dev/bots/run_fuchsia_tests.sh
View file @
f35a8b74
...
@@ -26,6 +26,10 @@ script_dir=$(dirname "$(readlink -f "$0")")
...
@@ -26,6 +26,10 @@ script_dir=$(dirname "$(readlink -f "$0")")
# Bot key to pave and ssh the device.
# Bot key to pave and ssh the device.
pkey
=
"/etc/botanist/keys/id_rsa_infra"
pkey
=
"/etc/botanist/keys/id_rsa_infra"
# This is longer than the test timeout as dumping the
# logs can sometimes take longer.
ssh_timeout_seconds
=
360
# The nodes are named blah-blah--four-word-fuchsia-id
# The nodes are named blah-blah--four-word-fuchsia-id
device_name
=
${
SWARMING_BOT_ID
#*--
}
device_name
=
${
SWARMING_BOT_ID
#*--
}
...
@@ -38,9 +42,24 @@ else
...
@@ -38,9 +42,24 @@ else
fi
fi
reboot
()
{
reboot
()
{
# note: this will set an exit code of 255, which we can ignore.
$script_dir
/fuchsia_ctl
-d
$device_name
ssh
\
-c
"log_listener --dump_logs yes --file /tmp/log.txt"
\
--timeout-seconds
$ssh_timeout_seconds
\
--identity-file
$pkey
# 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.
$script_dir
/fuchsia_ctl
-d
$device_name
ssh
\
-c
"cat /tmp/log.txt"
\
--timeout-seconds
$ssh_timeout_seconds
\
--identity-file
$pkey
echo
"
$(
date
)
START:REBOOT ------------------------------------------"
echo
"
$(
date
)
START:REBOOT ------------------------------------------"
$script_dir
/fuchsia_ctl
-d
$device_name
--device-finder-path
$script_dir
/device-finder ssh
--identity-file
$pkey
-c
"dm reboot-recovery"
||
true
# note: this will set an exit code of 255, which we can ignore.
$script_dir
/fuchsia_ctl
-d
$device_name
\
--device-finder-path
$script_dir
/device-finder
\
ssh
--identity-file
$pkey
\
-c
"dm reboot-recovery"
||
true
echo
"
$(
date
)
END:REBOOT --------------------------------------------"
echo
"
$(
date
)
END:REBOOT --------------------------------------------"
}
}
...
@@ -52,7 +71,13 @@ $script_dir/fuchsia_ctl -d $device_name pave -i $1 --public-key "key.pub"
...
@@ -52,7 +71,13 @@ $script_dir/fuchsia_ctl -d $device_name pave -i $1 --public-key "key.pub"
echo
"
$(
date
)
END:PAVING --------------------------------------------"
echo
"
$(
date
)
END:PAVING --------------------------------------------"
$script_dir
/fuchsia_ctl push-packages
-d
$device_name
--identity-file
$pkey
--repoArchive
generic-x64.tar.gz
-p
tiles
-p
tiles_ctl
echo
"
$(
date
)
START:PUSH_PACKAGES -------------------------------"
$script_dir
/fuchsia_ctl push-packages
\
-d
$device_name
\
--identity-file
$pkey
\
--repoArchive
generic-x64.tar.gz
\
-p
tiles
-p
tiles_ctl
echo
"
$(
date
)
END:PUSH_PACKAGES ---------------------------------"
# set fuchsia ssh config
# set fuchsia ssh config
cat
>
$script_dir
/fuchsia_ssh_config
<<
EOF
cat
>
$script_dir
/fuchsia_ssh_config
<<
EOF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment