Linux Test Project
 help / color / mirror / Atom feed
From: Xiao Yang <yangx.jy@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] commands/df01.sh: Add check for mkfs.${FS_TYPE} command
Date: Mon, 26 Feb 2018 18:50:42 +0800	[thread overview]
Message-ID: <5A93E682.2050806@cn.fujitsu.com> (raw)
In-Reply-To: <1518596984-16336-1-git-send-email-yangx.jy@cn.fujitsu.com>

Hi,

Ping :-)

Thanks,
Xiao Yang
于 2018/02/14 16:29, Xiao Yang 写道:
> Since commit 521df0e, tst_rod can detect nonexistent command and report TBROK
> in tst_mkfs(), so we can check mkfs.${FS_TYPE} command before tst_mkfs().
>
> If mkfs.exfat command did not exist, running df01_exfat got the following errors:
> -----------------------------------------------------------------
> tst_device.c:230: INFO: Using test device LTP_DEV='/dev/loop0'
>  1 TINFO: Formatting /dev/loop0 with exfat extra opts=''
>  1 TBROK: mkfs.exfat /dev/loop0 failed
>  1 TINFO: The /dev/loop0 is not mounted, skipping umount
> -----------------------------------------------------------------
>
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
> ---
>  testcases/commands/df/df01.sh | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/testcases/commands/df/df01.sh b/testcases/commands/df/df01.sh
> index 0552327..fbf1e2f 100755
> --- a/testcases/commands/df/df01.sh
> +++ b/testcases/commands/df/df01.sh
> @@ -49,6 +49,10 @@ parse_args()
>  
>  setup()
>  {
> +	if [ -n "$FS_TYPE" ]; then
> +		tst_check_cmds mkfs.${FS_TYPE}
> +	fi
> +
>  	tst_mkfs ${FS_TYPE} ${TST_DEVICE}
>  
>  	ROD_SILENT mkdir -p mntpoint




  reply	other threads:[~2018-02-26 10:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-14  8:29 [LTP] [PATCH] commands/df01.sh: Add check for mkfs.${FS_TYPE} command Xiao Yang
2018-02-26 10:50 ` Xiao Yang [this message]
2018-02-27  9:47 ` 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=5A93E682.2050806@cn.fujitsu.com \
    --to=yangx.jy@cn.fujitsu.com \
    --cc=ltp@lists.linux.it \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox