[LTP] [RFC PATCH 7/9] testcases: df: Add "--printf" option as needed commands
Cyril Hrubis
chrubis@suse.cz
Mon Apr 23 12:22:37 CEST 2018
Hi!
> diff --git a/testcases/commands/df/df01.sh b/testcases/commands/df/df01.sh
> index fbf1e2f2a..147620020 100755
> --- a/testcases/commands/df/df01.sh
> +++ b/testcases/commands/df/df01.sh
> @@ -26,6 +26,8 @@ TST_PARSE_ARGS=parse_args
> TST_NEEDS_ROOT=1
> TST_NEEDS_TMPDIR=1
> TST_NEEDS_DEVICE=1
> +TST_NEEDS_CMDS="stat --printf=%f"
Does this work? Because when I do something as:
$ command -v stat --nonexistent-option
/usr/bin/stat
$ echo $?
0
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list