Browse Source

test-js: Exit with 1 if any test failed

Linus Groh 4 years ago
parent
commit
3a72a93b9d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/test-js.cpp

+ 1 - 1
Userland/test-js.cpp

@@ -636,5 +636,5 @@ int main(int argc, char** argv)
 
     vm = nullptr;
 
-    return 0;
+    return TestRunner::the()->counts().tests_failed > 0 ? 1 : 0;
 }