[LTP] [PATCH v4 1/9] shell: Print mount command in tst_mount()
Petr Vorel
pvorel@suse.cz
Fri Sep 2 15:37:02 CEST 2022
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/lib/tst_test.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh
index f884a278d..7c97b69fe 100644
--- a/testcases/lib/tst_test.sh
+++ b/testcases/lib/tst_test.sh
@@ -293,9 +293,11 @@ tst_mount()
mnt_opt="-t $TST_FS_TYPE"
mnt_err=" $TST_FS_TYPE type"
fi
+ local cmd="mount $mnt_opt $TST_DEVICE $TST_MNTPOINT $TST_MNT_PARAMS"
ROD_SILENT mkdir -p $TST_MNTPOINT
- mount $mnt_opt $TST_DEVICE $TST_MNTPOINT $TST_MNT_PARAMS
+ tst_res TINFO "Mounting device: $cmd"
+ $cmd
local ret=$?
if [ $ret -eq 32 ]; then
--
2.37.2
More information about the ltp
mailing list