tests: Explicitly drop category from log

Let's disable category here since we don't care about its formatting here.

In any case, every test relying on logging output validation should
always explicitly state the config to avoid issues in the future if
default values change.

Change-Id: I8713f4e04e92b4d7e211c499fc6e78983edfb139
Related: OS#5034
This commit is contained in:
Pau Espin 2021-02-19 13:51:18 +01:00
parent da084794a6
commit 3abbb67ded
3 changed files with 6 additions and 0 deletions

View File

@ -527,6 +527,8 @@ int main(int argc, char **argv)
osmo_stderr_target->categories[DL1C].loglevel = LOGL_DEBUG;
log_set_print_filename(osmo_stderr_target, 0);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_category(osmo_stderr_target, 0);
log_set_print_category_hex(osmo_stderr_target, 0);
#define exec_test(test) \
exec_power_test(test, ARRAY_SIZE(test), #test)

View File

@ -325,6 +325,8 @@ int main(int argc, char **argv)
osmo_stderr_target->categories[DL1C].loglevel = LOGL_DEBUG;
log_set_print_filename(osmo_stderr_target, 0);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_category(osmo_stderr_target, 0);
log_set_print_category_hex(osmo_stderr_target, 0);
test_power_loop();
test_pf_algo_ewma();

View File

@ -249,6 +249,8 @@ int main(int argc, char **argv)
osmo_stderr_target->categories[DL1C].loglevel = LOGL_DEBUG;
log_set_print_filename(osmo_stderr_target, 0);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_category(osmo_stderr_target, 0);
log_set_print_category_hex(osmo_stderr_target, 0);
bts = gsm_bts_alloc(tall_bts_ctx, 0);
if (!bts) {