Revision 6d430e9d2dbc770f66c40e944928f5ec4f6cbccb authored by Henrik Skupin on 15 August 2018, 17:44:30 UTC, committed by jgraham on 17 August 2018, 09:47:16 UTC
Those tests make sure that an "invalid argument" error is raised if the body doesn't contain any data. bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1469601 gecko-commit: 7915b80eca091d53838f20594e84ed543b1752f3 gecko-integration-branch: mozilla-inbound gecko-reviewers: ato
1 parent e27c34b
lib.sh
#!/bin/bash
hosts_fixup() {
echo "travis_fold:start:hosts_fixup"
echo "Rewriting hosts file"
echo "## /etc/hosts ##"
cat /etc/hosts
sudo sed -i 's/^::1\s*localhost/::1/' /etc/hosts
./wpt make-hosts-file | sudo tee -a /etc/hosts
echo "== /etc/hosts =="
cat /etc/hosts
echo "----------------"
echo "travis_fold:end:hosts_fixup"
}
install_chrome() {
channel=$1
deb_archive=google-chrome-${channel}_current_amd64.deb
wget -q https://dl.google.com/linux/direct/$deb_archive
# If the environment provides an installation of Google Chrome, the
# existing binary may take precedence over the one introduced in this
# script. Remove any previously-existing "alternatives" prior to
# installation in order to ensure that the new binary is installed as
# intended.
if sudo update-alternatives --list google-chrome; then
sudo update-alternatives --remove-all google-chrome
fi
# 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
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...