mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
tests: back to short test names
With the switch to modules by default, I was getting super long test output: TEST: /home/remote/eblake/libvirt/tests/.libs/lt-interfacexml2xmltest compared to the former: TEST: interfacexml2xmltest * tests/testutils.c (virtTestMain): Trim off libtool goop.
This commit is contained in:
parent
d2e30e9851
commit
ee40725510
@ -35,6 +35,7 @@
|
|||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "virrandom.h"
|
#include "virrandom.h"
|
||||||
|
#include "dirname.h"
|
||||||
|
|
||||||
#if TEST_OOM_TRACE
|
#if TEST_OOM_TRACE
|
||||||
# include <execinfo.h>
|
# include <execinfo.h>
|
||||||
@ -576,9 +577,9 @@ int virtTestMain(int argc,
|
|||||||
if (!abs_srcdir)
|
if (!abs_srcdir)
|
||||||
exit(EXIT_AM_HARDFAIL);
|
exit(EXIT_AM_HARDFAIL);
|
||||||
|
|
||||||
progname = argv[0];
|
progname = last_component(argv[0]);
|
||||||
if (STRPREFIX(progname, "./"))
|
if (STRPREFIX(progname, "lt-"))
|
||||||
progname += 2;
|
progname += 3;
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
fprintf(stderr, "Usage: %s\n", argv[0]);
|
fprintf(stderr, "Usage: %s\n", argv[0]);
|
||||||
fputs("effective environment variables:\n"
|
fputs("effective environment variables:\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user