Message ID | 20180711122925.24278-3-punit.agrawal@arm.com |
---|---|
State | Superseded |
Delegated to: | Petr Vorel |
Headers | show |
Series | Add dependency checking | expand |
diff --git a/testcases/kernel/fs/quota_remount/quota_remount_test01.sh b/testcases/kernel/fs/quota_remount/quota_remount_test01.sh index 24f41aec1..8fa9ffc9f 100755 --- a/testcases/kernel/fs/quota_remount/quota_remount_test01.sh +++ b/testcases/kernel/fs/quota_remount/quota_remount_test01.sh @@ -41,6 +41,8 @@ export TCID=quota_remount_test01 export TST_TOTAL=1 export TST_COUNT=0 +. test.sh + if [ -z $TMPDIR ] then TMPDIR=/tmp @@ -58,6 +60,8 @@ if [ ! -d /proc/sys/fs/quota ]; then exit 0 fi +tst_check_cmds quotacheck quotaon + die() { echo >&2 $2
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 <punit.agrawal@arm.com> --- testcases/kernel/fs/quota_remount/quota_remount_test01.sh | 4 ++++ 1 file changed, 4 insertions(+)