All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Petr Vorel <pvorel@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2 3/3] lib: Add support for debugging .all_filesystems
Date: Tue, 14 Dec 2021 17:03:05 +0100	[thread overview]
Message-ID: <YbjAOffrWpsMvinQ@yuki> (raw)
In-Reply-To: <20211214144309.6704-4-pvorel@suse.cz>

Hi!
> +| 'LTP_SINGLE_FS_TYPE'  | Testing only specified filesystem instead all
                                         ^   ^
					 |   "specifies"
					 there should be comma or dash here

> +                          supported (for tests with '.all_filesystems').
>  | 'LTP_DEV_FS_TYPE'     | Filesystem used for testing (default: 'ext2').
>  | 'LTP_TIMEOUT_MUL'     | Multiply timeout, must be number >= 1 (> 1 is useful for
>                            slow machines to avoid unexpected timeout).
> diff --git a/lib/tst_supported_fs_types.c b/lib/tst_supported_fs_types.c
> index fc072cadfd..23e5ce8775 100644
> --- a/lib/tst_supported_fs_types.c
> +++ b/lib/tst_supported_fs_types.c
> @@ -139,8 +139,17 @@ const char **tst_get_supported_fs_types(const char *const *skiplist)
>  	unsigned int i, j = 0;
>  	int skip_fuse;
>  	enum tst_fs_impl sup;
> +	const char *only_fs;
>  
>  	skip_fuse = tst_fs_in_skiplist("fuse", skiplist);
> +	only_fs = getenv("LTP_SINGLE_FS_TYPE");
> +
> +	if (only_fs) {
> +		tst_res(TINFO, "WARNING: testing only %s", only_fs);
> +		if (tst_fs_is_supported(only_fs))
> +			fs_types[0] = only_fs;
> +		return fs_types;
> +	}
>  
>  	for (i = 0; fs_type_whitelist[i]; i++) {
>  		if (tst_fs_in_skiplist(fs_type_whitelist[i], skiplist)) {
> diff --git a/lib/tst_test.c b/lib/tst_test.c
> index f92ff858e9..ce2b8239d7 100644
> --- a/lib/tst_test.c
> +++ b/lib/tst_test.c
> @@ -483,6 +483,7 @@ static void print_help(void)
>  	fprintf(stderr, "LTP_COLORIZE_OUTPUT  Force colorized output behaviour (y/1 always, n/0: never)\n");
>  	fprintf(stderr, "LTP_DEV              Path to the block device to be used (for .needs_device)\n");
>  	fprintf(stderr, "LTP_DEV_FS_TYPE      Filesystem used for testing (default: %s)\n", DEFAULT_FS_TYPE);
> +	fprintf(stderr, "LTP_SINGLE_FS_TYPE   Testing only specified filesystem instead all supported (for .all_filesystems)\n");
>  	fprintf(stderr, "LTP_TIMEOUT_MUL      Multiply timeout (must be number >= 1)\n");
>  	fprintf(stderr, "LTP_VIRT_OVERRIDE    Overrides virtual machine detection (values: \"\"|kvm|microsoft|xen|zvm\n");
>  	fprintf(stderr, "TMPDIR               Base directory for template directory (for .needs_tmpdir, default: %s)\n", TEMPDIR);

Other than that the rest looks fine, for the patchset:

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>


-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2021-12-14 16:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-14 14:43 [LTP] [PATCH v2 0/3] Add support for debugging .all_filesystems Petr Vorel
2021-12-14 14:43 ` [LTP] [PATCH v2 1/3] lib: Introduce tst_defaults.h Petr Vorel
2021-12-14 14:43 ` [LTP] [PATCH v2 2/3] tst_test: Print environment variables on -h Petr Vorel
2021-12-14 16:44   ` Tim.Bird
2021-12-14 16:47     ` Petr Vorel
2021-12-14 16:57       ` Petr Vorel
2021-12-14 17:53         ` Tim.Bird
2021-12-14 18:54           ` Petr Vorel
2021-12-15  7:36             ` Li Wang
2021-12-15  9:49             ` Cyril Hrubis
2021-12-14 14:43 ` [LTP] [PATCH v2 3/3] lib: Add support for debugging .all_filesystems Petr Vorel
2021-12-14 16:03   ` Cyril Hrubis [this message]
2021-12-14 16:46     ` Petr Vorel
2021-12-15  7:49       ` Li Wang
2021-12-15  9:28         ` Petr Vorel
2021-12-15  9:30         ` Cyril Hrubis
2021-12-15  9:49           ` Li Wang
2021-12-15  9:54             ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YbjAOffrWpsMvinQ@yuki \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    --cc=pvorel@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.