diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dc51fae8d..aa56faa21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,6 +48,12 @@ jobs: cat ./bt_edit.log ./test-suite.log scripts/gdbtests.sh ./test-suite.log + - uses: test-summary/action@v2 + if: always() + with: + paths: | + /tmp/*.log.xml + - uses: actions/upload-artifact@v4 if: always() && steps.check.outcome == 'failure' && steps.rerun_tests.outcome == 'success' with: diff --git a/tests/bt-check.c b/tests/bt-check.c index c9297d3ae..cfc8fe0d8 100644 --- a/tests/bt-check.c +++ b/tests/bt-check.c @@ -386,7 +386,11 @@ setup_log_base (gint argc, gchar ** argv) // get basename from argv[0]; -> lt-bt_edit if ((log = g_path_get_basename (argv[0]))) { // cut libtool prefix - __log_base = g_strdup (&log[3]); + if (!strncmp (log, "lt-", 3)) { + __log_base = g_strdup (&log[3]); + } else { + __log_base = g_strdup (log); + } g_free (log); } else { fprintf (stderr, "can't get basename from: '%s'\n", argv[0]); @@ -544,7 +548,7 @@ get_suite_log_filename (void) { static gchar suite_log_fn[PATH_MAX]; - sprintf (suite_log_fn, "%s" G_DIR_SEPARATOR_S "log.xml", __log_suite); + sprintf (suite_log_fn, "%s.log.xml", __log_suite); return suite_log_fn; }