aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2021-03-31 10:26:37 +0200
committerPhilip Herron <herron.philip@googlemail.com>2021-04-01 10:34:35 +0100
commitc044fda54bce0b6a05425eb014a59e3def77c8a1 (patch)
treebad934b40030f929a4e29b9acba55a9c65fa9d90
parent16b1b9579d8a71983a50076f42e1bca5e2f3feda (diff)
downloadgcc-c044fda54bce0b6a05425eb014a59e3def77c8a1.zip
gcc-c044fda54bce0b6a05425eb014a59e3def77c8a1.tar.gz
gcc-c044fda54bce0b6a05425eb014a59e3def77c8a1.tar.bz2
Fix CI checks
Checking for 'unexpected' will also catch XFAIL tests being PASS.
-rw-r--r--.github/workflows/ccpp.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml
index 9f5c303..dd08940 100644
--- a/.github/workflows/ccpp.yml
+++ b/.github/workflows/ccpp.yml
@@ -46,8 +46,17 @@ jobs:
cd gccrs-build; \
make -j $(nproc)
- - name: Test
+ - name: Run Tests
run: |
cd gccrs-build; \
- make check-rust | tee results.log; \
- if [ `grep "# of unexpected failures" results.log | wc -l` != "0" ]; then exit 1; fi
+ make check-rust
+ - name: Check regressions
+ run: |
+ cd gccrs-build; \
+ if grep "# of unexpected" gcc/testsuite/rust/rust.sum;\
+ then \
+ echo "some tests are not correct"; \
+ exit 1; \
+ else \
+ exit 0; \
+ fi