diff options
author | Petr Vorel <pvorel@suse.cz> | 2019-02-20 15:17:43 +0100 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2019-03-14 14:22:06 +0100 |
commit | 465faf47f0793ba2337b87ee48d27ad4cec187d3 (patch) | |
tree | 937bac521aa5183ea64756c624ce590fbc52f1f9 /testcases/lib | |
parent | 38363f618542a06babe4f8db44d1b3b0996bed47 (diff) |
shell: Use $TST_FS_TYPE and $TST_DEVICE in tst_mkfs()
as default parameters.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'testcases/lib')
-rw-r--r-- | testcases/lib/tst_test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index ecd162e60..af16ce1cf 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -286,8 +286,8 @@ tst_umount() tst_mkfs() { - local fs_type=$1 - local device=$2 + local fs_type=${1:-$TST_FS_TYPE} + local device=${2:-$TST_DEVICE} shift 2 local fs_opts="$@" |