fix err on test failure
authorOlivier Matz <zer0@droids-corp.org>
Thu, 3 Aug 2017 20:30:02 +0000 (22:30 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 3 Aug 2017 20:30:02 +0000 (22:30 +0200)
lib/ecoli_test.c

index 6bd0fa3..3108324 100644 (file)
@@ -201,8 +201,10 @@ static int launch_test(const char *name)
                }
        }
 
-       if (name != NULL && count == 0)
+       if (name != NULL && count == 0) {
                ec_log(EC_LOG_WARNING, "== test %s not found\n", name);
+               ret = -1;
+       }
 
        return ret;
 }