diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-07-07 23:55:45 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-07-08 00:23:59 -0400 |
commit | 739b9f46b94860adae2040eabe02a61eacd6b044 (patch) | |
tree | c71e19865d09a5cf805aa47585d2ab8b595ad97f | |
parent | 82c655a8a5941cf4665844bceaf4d3144d649197 (diff) |
fixup! get-test-job: Query for subtests, and write per-subtest lockfiles
-rw-r--r-- | lib/get-test-job.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/get-test-job.c b/lib/get-test-job.c index b6ba666..fe2e8d1 100644 --- a/lib/get-test-job.c +++ b/lib/get-test-job.c @@ -229,10 +229,10 @@ static test_job get_best_test_job() if (!branch || !test_path) continue; - strings subtests = get_subtests(test_path); - if (verbose) - fprintf(stderr, "branch %s test %s\n", branch, test_path); + fprintf(stderr, "get_best_test_job: checking branch %s test %s\n", branch, test_path); + + strings subtests = get_subtests(test_path); test_job job = branch_get_next_test_job(branch, test_path, subtests); @@ -249,6 +249,10 @@ static test_job get_best_test_job() if (!best.branch) die("Nothing found"); + if (verbose) + fprintf(stderr, "get_best_test_job: best %s %s %s age %u\n", + best.branch, best.commit, best.test, best.age); + fclose(branches); free(line); return best; @@ -304,10 +308,6 @@ int main(int argc, char *argv[]) test_job_free(&job); job = get_best_test_job(); - if (verbose) - fprintf(stderr, "got %s %s %s age %u\n", - job.branch, job.commit, job.test, job.age); - darray_free(subtests); darray_init(subtests); |