From 207ea62bf95e9868fc6d982305da98678fbc4507 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 12 Feb 2023 16:46:40 +0100 Subject: [PATCH] test: handle -v as --verbose for regress --- test/tinytest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tinytest.c b/test/tinytest.c index 3bc7f9f6..af1b39fe 100644 --- a/test/tinytest.c +++ b/test/tinytest.c @@ -402,7 +402,7 @@ static void usage(struct testgroup_t *groups, int list_groups) { puts("Options are:"); - puts(" --verbose"); + puts(" -v, --verbose"); puts(" --quiet"); puts(" --terse"); puts(" --no-fork"); @@ -496,7 +496,7 @@ tinytest_main(int c, const char **v, struct testgroup_t *groups) } else if (!strcmp(v[i], "--quiet")) { opt_verbosity = -1; verbosity_flag = "--quiet"; - } else if (!strcmp(v[i], "--verbose")) { + } else if (!strcmp(v[i], "-v") || !strcmp(v[i], "--verbose")) { opt_verbosity = 2; verbosity_flag = "--verbose"; } else if (!strcmp(v[i], "--terse")) { -- 2.40.0