public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] acls: Solve a problem from acl_test01
@ 2015-07-09  7:27 Wentao Ma
  2015-07-13  6:56 ` Wanlong Gao
  0 siblings, 1 reply; 7+ messages in thread
From: Wentao Ma @ 2015-07-09  7:27 UTC (permalink / raw)
  To: ltp-list; +Cc: wunan

The failed infornamtion is as follow:
useradd: cannot set SELinux context for
home directory /tmp/tacl/mount-ext3/acltest1

this is caused by comand "rm -rf $TEST_USER1_HOMEDIR".
But this directory is needed by next step.
So create this driectory again.

Signed-off-by: Wentao Ma <mawentao@inspur.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 328ff74..d079abd 100755
--- a/testcases/kernel/fs/acls/acl_test01
+++ b/testcases/kernel/fs/acls/acl_test01
@@ -87,6 +87,7 @@ do_setup(){
 	rm -rf $TEST_USER1_HOMEDIR
 	userdel $TEST_USER1 > /dev/null 2>&1
 	sleep 1
+        mkdir -p $TEST_USER1_HOMEDIR
 	useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh
 
 	if [ $? -ne 0 ]; then
-- 
1.8.3.1



------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2015-07-13  9:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09  7:27 [LTP] [PATCH] acls: Solve a problem from acl_test01 Wentao Ma
2015-07-13  6:56 ` Wanlong Gao
2015-07-13  8:33   ` mawentao
2015-07-13  8:37     ` Wanlong Gao
2015-07-13  8:45       ` yanxiaofeng
2015-07-13  9:36         ` xcf733520
2015-07-13  8:45   ` Jan Stancek

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