[LTP] [PATCH] fs_bind: Convert to ltp tests

Richard Palethorpe rpalethorpe@suse.de
Tue Jul 6 11:41:00 CEST 2021


Hello Joerg,

Joerg Vehlow <lkml@jv-coder.de> writes:

> diff --git a/testcases/kernel/fs/fs_bind/cloneNS/fs_bind_cloneNS02.sh b/testcases/kernel/fs/fs_bind/cloneNS/fs_bind_cloneNS02.sh
> new file mode 100755
> index 000000000..9e0f5fe05
> --- /dev/null
> +++ b/testcases/kernel/fs/fs_bind/cloneNS/fs_bind_cloneNS02.sh
> @@ -0,0 +1,53 @@
> +#!/bin/sh
> +# SPDX-License-Identifier: GPL-2.0-or-later
> +# Copyright (c) International Business Machines  Corp., 2005
> +# Copyright (c) 2021 Joerg Vehlow <joerg.vehlow@aox-tech.de>
> +# Author: Avantika Mathur (mathurav@us.ibm.com)
> +
> +FS_BIND_TESTFUNC=test
> +
> +. fs_bind_lib.sh
> +
> +test()
> +{
> +    tst_res TINFO "cloneNS: namespaces with parent-slave"
> +
> +	fs_bind_makedir rshared dir1
> +	EXPECT_PASS mount --bind "$FS_BIND_DISK1" dir1
> +
> +	mkdir dir2
> +	EXPECT_PASS mount --bind dir1 dir2

There seems to be a section of tabs instead of spaces here. Also in
other places.

I wonder how you converted these?

Looks promising.

-- 
Thank you,
Richard.


More information about the ltp mailing list