From a6990b26acf689e4c81cdb31b12133867425c0d1 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Wed, 18 May 2016 10:58:49 -0500 Subject: [PATCH] Added test that files exist to etc/ci/check_no_unwrap.sh. --- etc/ci/check_no_unwrap.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/ci/check_no_unwrap.sh b/etc/ci/check_no_unwrap.sh index 9f07b56aaf7..59a699eafcd 100755 --- a/etc/ci/check_no_unwrap.sh +++ b/etc/ci/check_no_unwrap.sh @@ -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[@]}"