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

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

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. 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
(...skipping 26 matching lines...) Expand all
37 # Installation will fail in cases where the package has unmet dependencies. 37 # Installation will fail in cases where the package has unmet dependencies.
38 # 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
39 # required packages and retry. 39 # required packages and retry.
40 if ! sudo dpkg --install $deb_archive; then 40 if ! sudo dpkg --install $deb_archive; then
41 sudo apt-get install --fix-broken 41 sudo apt-get install --fix-broken
42 sudo dpkg --install $deb_archive 42 sudo dpkg --install $deb_archive
43 fi 43 fi
44 } 44 }
45 45
46 test_stability() { 46 test_stability() {
47 python check_stability.py $PRODUCT 47 python check_stability.py $PRODUCT --output-bytes $((1024 * 1024 * 3))
48 } 48 }
49 49
50 main() { 50 main() {
51 hosts_fixup 51 hosts_fixup
52 if [ $(echo $PRODUCT | grep '^chrome:') ]; then 52 if [ $(echo $PRODUCT | grep '^chrome:') ]; then
53 install_chrome $(echo $PRODUCT | grep --only-matching '\w\+$') 53 install_chrome $(echo $PRODUCT | grep --only-matching '\w\+$')
54 fi 54 fi
55 test_stability 55 test_stability
56 } 56 }
57 57
58 main 58 main
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698