diff --git a/bin/runapptests.js b/bin/runapptests.js index d09481a1d..17d2e9ce2 100755 --- a/bin/runapptests.js +++ b/bin/runapptests.js @@ -485,7 +485,7 @@ emu.init({ console.table(testState); process.exit(testState.reduce((a,c)=>{ - return a + ((c.result == "SUCCESS") ? 0 : 1); + return a || ((c.result == "SUCCESS") ? 0 : 1); }, 0)) }); return p;