Skip to content

Commit e7d6340

Browse files
committed
Reapply "Tail the Sauce Connect log"
This reverts commit 5ad1c8f.
1 parent 25bc6a0 commit e7d6340

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

docker/ci/scripts/ui_tests.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,4 @@
77

88
source docker/ci/scripts/prepare_ci_tests.sh
99

10-
# Set up trap to dump Sauce Connect log on exit (success or failure)
11-
function dump_sc_log() {
12-
if [ -f log/sc.log ]; then
13-
echo "Sauce Connect log:"
14-
cat log/sc.log
15-
fi
16-
}
17-
trap dump_sc_log EXIT
18-
1910
bundle exec rake ci:run_ui_tests

lib/rake/ci.rake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ namespace :ci do
123123
use_saucelabs = !ui_test_browsers.empty?
124124
if use_saucelabs || test_eyes?
125125
Cdo::SauceConnect.start_sauce_connect(daemonize: true)
126+
# Tail the Sauce Connect log for real-time visibility in CI (from beginning of file)
127+
RakeUtils.exec_in_background 'tail -f -n +1 log/sc.log | sed "s/^/[SC] /"'
126128
end
127129
RakeUtils.wait_for_url('http://localhost-studio.code.org:3000')
128130
Dir.chdir('dashboard/test/ui') do

0 commit comments

Comments
 (0)