]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/run_tests.c
ccanlint: rename test keys
[ccan] / tools / ccanlint / tests / run_tests.c
index 0a8434c6e5a35563bfd3eae06f61cbf0e7554c84..3821b36a761259ae2c480dba3fc193b99861c3e5 100644 (file)
@@ -35,11 +35,11 @@ static void do_run_tests(struct manifest *m,
        foreach_ptr(list, &m->run_tests, &m->api_tests) {
                list_for_each(list, i, list) {
                        score->total++;
-                       cmdout = run_command(m, timeleft, i->compiled);
-                       if (cmdout)
-                               score_file_error(score, i, 0, cmdout);
-                       else
+                       if (run_command(m, timeleft, &cmdout, "%s",
+                                       i->compiled))
                                score->score++;
+                       else
+                               score_file_error(score, i, 0, cmdout);
                }
        }
 
@@ -66,7 +66,7 @@ static void run_under_debugger(struct manifest *m, struct score *score)
 }
 
 struct ccanlint run_tests = {
-       .key = "run",
+       .key = "tests_pass",
        .name = "Module's run and api tests pass",
        .check = do_run_tests,
        .handle = run_under_debugger,