From bef283eb2cd709f167e7f7399a3d21a7a2b4b4d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Fri, 19 Apr 2024 12:19:26 +0200 Subject: [PATCH] chore: exit running related tests if there was no match (#64772) --- run-tests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run-tests.js b/run-tests.js index 4aa0796e981bb..257614be73dc8 100644 --- a/run-tests.js +++ b/run-tests.js @@ -251,7 +251,8 @@ async function main() { if (testPatternRegex) { console.log('Running related tests:', testPatternRegex.toString()) } else { - console.log('No matching related tests.') + console.log('No matching related tests, exiting.') + process.exit(0) } }