quota_remount_test01: Add explicit check for dependencies
PATCH v2 1/1 quota_remount_test01: Add explicit check for dependencies
quota_remount_test01 doesn't check for dependencies before execution. Add explicit checks for quotacheck and quotaon and bail out if they are not present.
Signed-off-by Punit Agrawal <[email protected]>
---
v2:
* Replaced the use of test.sh with shell commands to check for test dependencies
.../kernel/fs/quota_remount/quota_remount_test01.sh | 10 ++++++++++ 1 file changed, 10 insertions(+)
testcases/kernel/fs/quota_remount/quota_remount_test01.sh +10 -0
@@ -58,6 +58,16 @@ if [ ! -d /proc/sys/fs/quota ]; then exit 0 fi +if ! command -v quotacheck > /dev/null 2>&1; then + tst_resm TCONF "'quotacheck' not found" + exit 0 +fi + +if ! command -v quotaon > /dev/null 2>&1; then + tst_resm TCONF "'quotaon' not found" + exit 0 +fi + die() { echo >&2 $2
Signature · 1 line
2.17.1
PATCH v2 1/1 quota_remount_test01: Add explicit check for dependencies
----- Original Message -----
Quoted 9 lines
quota_remount_test01doesn't check for dependencies before execution. Add explicit checks for quotacheck and quotaon and bail out if they are not present.Signed-off-by Punit Agrawal <[email protected]>---
v2:
* Replaced the use oftest.shwith shell commands to check for test dependencies
Pushed.
Thanks,
Jan