diff --git a/.travis.yml b/.travis.yml index db86c2a6e45..09bd9afee84 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ matrix: - ./mach test-unit - ./mach build-geckolib - ./mach test-stylo - - bash etc/ci/check_no_unwrap.sh + - bash etc/ci/check_no_panic.sh - bash etc/ci/lockfile_changed.sh - bash etc/ci/manifest_changed.sh cache: diff --git a/etc/ci/buildbot_steps.yml b/etc/ci/buildbot_steps.yml index 65b0db5dc70..0b6ae34f92b 100644 --- a/etc/ci/buildbot_steps.yml +++ b/etc/ci/buildbot_steps.yml @@ -52,7 +52,7 @@ linux-dev: - ./mach test-stylo - bash ./etc/ci/lockfile_changed.sh - bash ./etc/ci/manifest_changed.sh - - bash ./etc/ci/check_no_unwrap.sh + - bash ./etc/ci/check_no_panic.sh linux-rel-wpt: - ./mach build --release diff --git a/etc/ci/check_no_unwrap.sh b/etc/ci/check_no_panic.sh similarity index 89% rename from etc/ci/check_no_unwrap.sh rename to etc/ci/check_no_panic.sh index b6cf5dc837f..c25f45fa763 100755 --- a/etc/ci/check_no_unwrap.sh +++ b/etc/ci/check_no_panic.sh @@ -4,7 +4,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -# Make sure listed files do not contain "unwrap" +# Make sure listed files do not use unwrap() or panic!() set -o errexit set -o nounset @@ -13,7 +13,6 @@ set -o pipefail # cd into repo root to make sure paths work in any case cd "$(git rev-parse --show-toplevel)" -# files that should not contain "unwrap" FILES=("components/compositing/compositor.rs" "components/constellation/constellation.rs" "components/constellation/pipeline.rs"