summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2022-05-01 12:07:39 +0300
committerJF <JF002@users.noreply.github.com>2022-05-08 13:31:00 +0200
commitc94e0d53bbb0612b11d1d8d06ebcedc242ed45c0 (patch)
tree46bca6b95f19997d70938b46486b9029cee8d59e /tests
parent015f17cd258cc336fa509b190814f6319d19bbbc (diff)
Ignore deleted files in format test
Otherwise clang-format would fail with an error and exit the script prematurely.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test-format.sh1
1 files changed, 1 insertions, 0 deletions
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"