public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] acl_test01: Add setfacl as an explicit dependency
@ 2018-07-06 15:29 Punit Agrawal
  2018-07-10 13:53 ` Jan Stancek
  0 siblings, 1 reply; 3+ messages in thread
From: Punit Agrawal @ 2018-07-06 15:29 UTC (permalink / raw)
  To: ltp

acl_test01 calls setfacl during execution but does not explicitly
check for its presence during setup.

Add this dependency to correctly report the failure mode when setfacl
is not found.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
---
 testcases/kernel/fs/acls/acl_test01 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01
index c91eb5686..14b62e895 100755
--- a/testcases/kernel/fs/acls/acl_test01
+++ b/testcases/kernel/fs/acls/acl_test01
@@ -64,6 +64,7 @@ fi
 do_setup()
 {
 	tst_require_root
+	tst_check_cmds setfacl
 
 	if ! ( test -d $TMP/tacl || mkdir -m 777 $TMP/tacl) ; then
 		tst_brkm TBROK "Failed to create $TMP/tacl directory."
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [LTP] [PATCH] acl_test01: Add setfacl as an explicit dependency
  2018-07-06 15:29 [LTP] [PATCH] acl_test01: Add setfacl as an explicit dependency Punit Agrawal
@ 2018-07-10 13:53 ` Jan Stancek
  2018-07-10 14:34   ` Punit Agrawal
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Stancek @ 2018-07-10 13:53 UTC (permalink / raw)
  To: ltp



----- Original Message -----
> acl_test01 calls setfacl during execution but does not explicitly
> check for its presence during setup.
> 
> Add this dependency to correctly report the failure mode when setfacl
> is not found.
> 
> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>

Pushed.

Thanks,
Jan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [LTP] [PATCH] acl_test01: Add setfacl as an explicit dependency
  2018-07-10 13:53 ` Jan Stancek
@ 2018-07-10 14:34   ` Punit Agrawal
  0 siblings, 0 replies; 3+ messages in thread
From: Punit Agrawal @ 2018-07-10 14:34 UTC (permalink / raw)
  To: ltp

Jan Stancek <jstancek@redhat.com> writes:

> ----- Original Message -----
>> acl_test01 calls setfacl during execution but does not explicitly
>> check for its presence during setup.
>> 
>> Add this dependency to correctly report the failure mode when setfacl
>> is not found.
>> 
>> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
>
> Pushed.

Thanks!

Since sending this commit I've hit other tests which don't do a full
dependency check - many of them seem to be using 'killall'. I'll try and
collect all the patches and send them out together.

>
> Thanks,
> Jan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-10 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-06 15:29 [LTP] [PATCH] acl_test01: Add setfacl as an explicit dependency Punit Agrawal
2018-07-10 13:53 ` Jan Stancek
2018-07-10 14:34   ` Punit Agrawal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox