Added test that files exist to etc/ci/check_no_unwrap.sh.

This commit is contained in:
Alan Jeffrey 2016-05-18 10:58:49 -05:00
parent 96a86bd952
commit a6990b26ac

View file

@ -13,4 +13,8 @@ FILES=("components/compositing/compositor.rs"
"components/compositing/pipeline.rs"
"components/compositing/constellation.rs")
! grep -n "unwrap(\|panic!(" "${FILES[@]}"
# make sure the files exist
ls -1 "${FILES[@]}"
# make sure the files do not contain "unwrap" or "panic!"
! grep --line-number --with-filename "unwrap(\|panic!(" "${FILES[@]}"