From 4c88acbb897c3843c5f0f11eb0f1b0729656e18b Mon Sep 17 00:00:00 2001 From: Trevor Elliott Date: Fri, 24 Feb 2023 07:39:37 -0800 Subject: [PATCH] Test all backends when a runtest is modified (#5872) * Test all backends when a runtest is modified * Check that this triggers all backend tests * Revert "Check that this triggers all backend tests" This reverts commit 1d12536d04f5a3b01fa5420f407960d7ab81da8f. --- ci/build-test-matrix.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ci/build-test-matrix.js b/ci/build-test-matrix.js index d0dd51b93c..9983464d14 100644 --- a/ci/build-test-matrix.js +++ b/ci/build-test-matrix.js @@ -97,6 +97,13 @@ function myFilter(item) { if (item.filter && commits.includes(`prtest:${item.filter}`)) { return true; } + + // If any runtest was modified, re-run the whole test suite as those can + // target any backend. + if (names.includes(`cranelift/filetests/filetests/runtests`)) { + return true; + } + return false; }