mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Added test that files exist to etc/ci/check_no_unwrap.sh.
This commit is contained in:
parent
96a86bd952
commit
a6990b26ac
1 changed files with 5 additions and 1 deletions
|
@ -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[@]}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue