Skip to content

Commit

Permalink
CI doesn't support clang-format, don't fail the test gen script if it…
Browse files Browse the repository at this point in the history
… is missing
  • Loading branch information
PossiblyAShrub committed Apr 11, 2024
1 parent a5ac4a5 commit 53b71a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data_lang/utf8_decoder_tests_gen.sh
Expand Up @@ -2,4 +2,9 @@

mkdir -p _gen/test/utf8
python3 data_lang/utf8_decoder_tests_gen.py >_gen/test/utf8/decoder-exhaustive.inc
clang-format -i _gen/test/utf8/decoder-exhaustive.inc

# Try to format, but clang-format isn't always available (eg. CI)
if ! clang-format -i _gen/test/utf8/decoder-exhaustive.inc; then
echo 'Failed to run clang-format on generated decoder tests.'
echo 'Make sure it is installed if you want _gen/test/utf8/decoder-exhaustive.inc to be human readable.'
fi

0 comments on commit 53b71a8

Please sign in to comment.