diff mbox series

[v2,2/4] df01.sh: Use TST_MOUNT_DEVICE=1

Message ID 20220510155438.15754-3-pvorel@suse.cz
State Superseded
Headers show
Series shell: Add $TST_MOUNT_DEVICE support | expand

Commit Message

Petr Vorel May 10, 2022, 3:54 p.m. UTC
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/commands/df/df01.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Petr Vorel May 11, 2022, 2:48 p.m. UTC | #1
Hi,

> diff --git a/testcases/commands/df/df01.sh b/testcases/commands/df/df01.sh
...
> @@ -13,7 +14,7 @@ TST_OPTS="f:"
>  TST_USAGE=usage
>  TST_PARSE_ARGS=parse_args
>  TST_NEEDS_ROOT=1
> -TST_FORMAT_DEVICE=1
> +TST_MOUNT_DEVICE=1

I forget to remove TST_CLEANUP=tst_umount.

Therefore there is an error:
df01 13 TINFO: The '/tmp/LTP_df01.UaDhMw4Ifq/mntpoint' is not mounted, skipping umount

If this is the only error, I'll fix it during merge.

Kind regards,
Petr
diff mbox series

Patch

diff --git a/testcases/commands/df/df01.sh b/testcases/commands/df/df01.sh
index f74032c96..cfc8feab8 100755
--- a/testcases/commands/df/df01.sh
+++ b/testcases/commands/df/df01.sh
@@ -1,6 +1,7 @@ 
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (c) 2015 Fujitsu Ltd.
+# Copyright (c) 2018-2022 Petr Vorel <pvorel@suse.cz>
 # Author: Zhang Jin <jy_zhangjin@cn.fujitsu.com>
 #
 # Test df command with some basic options.
@@ -13,7 +14,7 @@  TST_OPTS="f:"
 TST_USAGE=usage
 TST_PARSE_ARGS=parse_args
 TST_NEEDS_ROOT=1
-TST_FORMAT_DEVICE=1
+TST_MOUNT_DEVICE=1
 
 usage()
 {
@@ -34,7 +35,6 @@  parse_args()
 
 setup()
 {
-	tst_mount
 	DF_FS_TYPE=$(mount | grep "$TST_DEVICE" | awk 'NR==1{print $5}')
 }