[LTP] [RFC PATCH 7/9] testcases: df: Add "--printf" option as needed commands
Mylène Josserand
mylene.josserand@bootlin.com
Mon Apr 23 11:46:37 CEST 2018
In case Busybox is used with minimal configuration, the option
"--printf" is not available so the test is failing.
Add this option in the needed commands to return a TCONF
if it is not available.
Signed-off-by: Mylène Josserand <mylene.josserand@bootlin.com>
---
testcases/commands/df/df01.sh | 2 ++
1 file changed, 2 insertions(+)
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"
+
. tst_test.sh
usage()
--
2.11.0
More information about the ltp
mailing list