Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/ci_stability.sh

Issue 2668783003: Import wpt@767dc2a4f049c761bd146d61de2ea860a895a624 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 set -e 1 set -e
2 2
3 hosts_fixup() { 3 hosts_fixup() {
4 echo "travis_fold:start:hosts_fixup" 4 echo "travis_fold:start:hosts_fixup"
5 echo "Rewriting hosts file" 5 echo "Rewriting hosts file"
6 echo "## /etc/hosts ##" 6 echo "## /etc/hosts ##"
7 cat /etc/hosts 7 cat /etc/hosts
8 sudo sed -i 's/^::1\s*localhost/::1/' /etc/hosts 8 sudo sed -i 's/^::1\s*localhost/::1/' /etc/hosts
9 sudo sh -c 'echo " 9 sudo sh -c 'echo "
10 127.0.0.1 web-platform.test 10 127.0.0.1 web-platform.test
11 127.0.0.1 www.web-platform.test 11 127.0.0.1 www.web-platform.test
12 127.0.0.1 www1.web-platform.test 12 127.0.0.1 www1.web-platform.test
13 127.0.0.1 www2.web-platform.test 13 127.0.0.1 www2.web-platform.test
14 127.0.0.1 xn--n8j6ds53lwwkrqhv28a.web-platform.test 14 127.0.0.1 xn--n8j6ds53lwwkrqhv28a.web-platform.test
15 127.0.0.1 xn--lve-6lad.web-platform.test 15 127.0.0.1 xn--lve-6lad.web-platform.test
16 " >> /etc/hosts' 16 " >> /etc/hosts'
17 echo "== /etc/hosts ==" 17 echo "== /etc/hosts =="
18 cat /etc/hosts 18 cat /etc/hosts
19 echo "----------------" 19 echo "----------------"
20 echo "travis_fold:end:hosts_fixup" 20 echo "travis_fold:end:hosts_fixup"
21 } 21 }
22 22
23 install_chrome() { 23 install_chrome() {
24 channel=$1 24 channel=$1
25 deb_archive=google-chrome-${channel}_current_amd64.deb 25 deb_archive=google-chrome-${channel}_current_amd64.deb
26 wget https://dl.google.com/linux/direct/$deb_archive 26 wget https://dl.google.com/linux/direct/$deb_archive
27 27
28 # If the environment provides an installation of Google Chrome, the
29 # existing binary may take precedence over the one introduced in this
30 # script. Remove any previously-existing "alternatives" prior to
31 # installation in order to ensure that the new binary is installed as
32 # intended.
33 if sudo update-alternatives --list google-chrome; then
34 sudo update-alternatives --remove-all google-chrome
35 fi
36
28 # Installation will fail in cases where the package has unmet dependencies. 37 # Installation will fail in cases where the package has unmet dependencies.
29 # When this occurs, attempt to use the system package manager to fetch the 38 # When this occurs, attempt to use the system package manager to fetch the
30 # required packages and retry. 39 # required packages and retry.
31 if ! sudo dpkg --install $deb_archive; then 40 if ! sudo dpkg --install $deb_archive; then
32 sudo apt-get install --fix-broken 41 sudo apt-get install --fix-broken
33 sudo dpkg --install $deb_archive 42 sudo dpkg --install $deb_archive
34 fi 43 fi
35 } 44 }
36 45
37 test_stability() { 46 test_stability() {
38 python check_stability.py $PRODUCT 47 python check_stability.py $PRODUCT
39 } 48 }
40 49
41 main() { 50 main() {
42 hosts_fixup 51 hosts_fixup
43 if [ $(echo $PRODUCT | grep '^chrome:') ]; then 52 if [ $(echo $PRODUCT | grep '^chrome:') ]; then
44 install_chrome $(echo $PRODUCT | grep --only-matching '\w\+$') 53 install_chrome $(echo $PRODUCT | grep --only-matching '\w\+$')
45 fi 54 fi
46 test_stability 55 test_stability
47 } 56 }
48 57
49 main 58 main
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698