kopia lustrzana https://github.com/micropython/micropython
Revert "lib/tinytest: Clean up test reporting in the presence of std..."
This reverts commit f4ed2dfa94
.
This lets tinytest work as it was originally designed. An alternate
solution for the reverted commit will be implemented in a future commit.
pull/5450/head
rodzic
3078a4b2e2
commit
1605c7e584
|
@ -234,9 +234,8 @@ testcase_run_one(const struct testgroup_t *group,
|
||||||
return SKIP;
|
return SKIP;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("# starting %s%s\n", group->prefix, testcase->name);
|
|
||||||
if (opt_verbosity>0 && !opt_forked) {
|
if (opt_verbosity>0 && !opt_forked) {
|
||||||
//printf("%s%s: ", group->prefix, testcase->name);
|
printf("%s%s: ", group->prefix, testcase->name);
|
||||||
} else {
|
} else {
|
||||||
if (opt_verbosity==0) printf(".");
|
if (opt_verbosity==0) printf(".");
|
||||||
cur_test_prefix = group->prefix;
|
cur_test_prefix = group->prefix;
|
||||||
|
@ -253,7 +252,6 @@ testcase_run_one(const struct testgroup_t *group,
|
||||||
outcome = testcase_run_bare_(testcase);
|
outcome = testcase_run_bare_(testcase);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%s%s: ", group->prefix, testcase->name);
|
|
||||||
if (outcome == OK) {
|
if (outcome == OK) {
|
||||||
++n_ok;
|
++n_ok;
|
||||||
if (opt_verbosity>0 && !opt_forked)
|
if (opt_verbosity>0 && !opt_forked)
|
||||||
|
@ -265,8 +263,7 @@ testcase_run_one(const struct testgroup_t *group,
|
||||||
} else {
|
} else {
|
||||||
++n_bad;
|
++n_bad;
|
||||||
if (!opt_forked)
|
if (!opt_forked)
|
||||||
//printf("\n [%s FAILED]\n", testcase->name);
|
printf("\n [%s FAILED]\n", testcase->name);
|
||||||
puts("FAILED");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opt_forked) {
|
if (opt_forked) {
|
||||||
|
|
Ładowanie…
Reference in New Issue