[libcxx-commits] [PATCH] D101303: [WIP][libc++][DI] Fix check-generated-output.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 27 08:56:07 PDT 2021
Mordante updated this revision to Diff 340864.
Mordante added a comment.
- Removes all test code.
- Restores all pipelines.
- Added documentation why the work-around is needed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101303/new/
https://reviews.llvm.org/D101303
Files:
libcxx/utils/ci/run-buildbot
Index: libcxx/utils/ci/run-buildbot
===================================================================
--- libcxx/utils/ci/run-buildbot
+++ libcxx/utils/ci/run-buildbot
@@ -133,18 +133,25 @@
! grep -q '^--- a' ${BUILD_DIR}/clang-format.patch
;;
check-generated-output)
+ # When using set -e in Bash and use the not operator to invert the result
+ # of a command, the failed test won't stop processing. This is solved by
+ # using the logical or operator. This command won't work as intended:
+ # ! foo
+ # Instead use:
+ # ! foo || false
+ # Note if ! foo is the last command it will work as intended.
clean
echo "+++ Checking the output of the generator scripts"
mkdir -p ${BUILD_DIR}
# Reject patches that introduce non-ASCII characters or hard tabs.
- ! grep -rn '[^ -~]' libcxx/include/
+ ! grep -rn '[^ -~]' libcxx/include/ || false
# Reject patches that don't update the generated output correctly.
python3 libcxx/utils/generate_feature_test_macro_components.py
python3 libcxx/utils/generate_header_inclusion_tests.py
python3 libcxx/utils/generate_header_tests.py
git diff | tee ${BUILD_DIR}/generated_output.patch
# Check if the diffs are empty, fail otherwise.
- ! grep -q '^--- a' ${BUILD_DIR}/generated_output.patch
+ ! grep -q '^--- a' ${BUILD_DIR}/generated_output.patch || false
# Check that no dependency cycles have been introduced.
python3 libcxx/utils/graph_header_deps.py >/dev/null
;;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101303.340864.patch
Type: text/x-patch
Size: 1506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210427/57f525f5/attachment-0001.bin>
More information about the libcxx-commits
mailing list