From 7ff2ff31a079cea6f365e2bc40a7d53d2f38296e Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 1 Feb 2019 22:40:24 -0500 Subject: [PATCH] maybe fixing CI logic? --- unit_tests/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit_tests/main.cpp b/unit_tests/main.cpp index 47c357b53e..4339dc4e05 100644 --- a/unit_tests/main.cpp +++ b/unit_tests/main.cpp @@ -56,7 +56,8 @@ GTEST_API_ int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); // uncomment if you only want to run selected tests //::testing::GTEST_FLAG(filter) = "*testFasterEngineSpinningUp*"; - return RUN_ALL_TESTS(); + int result = RUN_ALL_TESTS(); + return result == 0 ? 0 : -1; } void print(const char *format, ...) {