From 5c5c89878bcf6ba7ab3b630e542f657ad030415d Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 5 May 2024 09:30:58 +0200 Subject: [PATCH] runapptests - Return number of failed tests as exit code --- bin/runapptests.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/runapptests.js b/bin/runapptests.js index 535fdb574..f83958a2b 100755 --- a/bin/runapptests.js +++ b/bin/runapptests.js @@ -370,6 +370,10 @@ emu.init({ console.log("\n\n"); console.log("Overall results:"); console.table(testState); + + process.exit(testState.reduce((a,c)=>{ + return a + ((c.result == "SUCCESS") ? 0 : 1); + }, 0)) }); return p; });