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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/ci_stability.sh

Issue 2645553002: Import wpt@fd6560f225668e933bfb147ee0e20d5971a0d21f (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/ci_stability.sh
diff --git a/third_party/WebKit/LayoutTests/external/wpt/ci_stability.sh b/third_party/WebKit/LayoutTests/external/wpt/ci_stability.sh
index 8e03c182084eb464caa1197562ab5e8aba6848be..725c0f076ca06603b82cb87533f13607d5d9129c 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/ci_stability.sh
+++ b/third_party/WebKit/LayoutTests/external/wpt/ci_stability.sh
@@ -20,6 +20,19 @@ hosts_fixup() {
echo "travis_fold:end:hosts_fixup"
}
+install_chrome() {
+ channel=$1
+ deb_archive=google-chrome-${channel}_current_amd64.deb
+ wget https://dl.google.com/linux/direct/$deb_archive
+
+ # Installation will fail in cases where the package has unmet dependencies.
+ # When this occurs, attempt to use the system package manager to fetch the
+ # required packages and retry.
+ if ! sudo dpkg --install $deb_archive; then
+ sudo apt-get install --fix-broken
+ sudo dpkg --install $deb_archive
+ fi
+}
test_stability() {
python check_stability.py $PRODUCT
@@ -27,6 +40,9 @@ test_stability() {
main() {
hosts_fixup
+ if [ $(echo $PRODUCT | grep '^chrome:') ]; then
+ install_chrome $(echo $PRODUCT | grep --only-matching '\w\+$')
+ fi
test_stability
}

Powered by Google App Engine
This is Rietveld 408576698