From c94e0d53bbb0612b11d1d8d06ebcedc242ed45c0 Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Sun, 1 May 2022 12:07:39 +0300 Subject: [PATCH] Ignore deleted files in format test Otherwise clang-format would fail with an error and exit the script prematurely. --- tests/test-format.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-format.sh b/tests/test-format.sh index 9caf6de5..ed20a4f2 100755 --- a/tests/test-format.sh +++ b/tests/test-format.sh @@ -12,6 +12,7 @@ CHANGED=0 for file in $CHANGED_FILES do + [ -e "$file" ] || continue case "$file" in *.cpp|*.h) echo Checking "$file"