All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] PATCH : test_fs_bind testscript for busybox machines
@ 2010-04-26  6:36 Suzuki Poulose
  2010-04-26  7:48 ` Rishikesh K Rajak
  2010-05-04 22:35 ` Matt Helsley
  0 siblings, 2 replies; 4+ messages in thread
From: Suzuki Poulose @ 2010-04-26  6:36 UTC (permalink / raw)
  To: risrajak, ltp-list

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

Hi,

The test_fs_bind testscript hangs indefinitely when run on a machine 
where busybox applets are used.

The test hangs while trying to restore the mounts after a test run.


This happens because the "xargs" applet from busybox doesn't understand 
the --max-args=1 option. Thus, the mounts from the test are not removed 
and this goes on in a loop, indefinitely.

This could be avoided by using "-n" option which is supported by both 
the implementations of xargs.


Attached the patch here.

Thanks

Suzuki

[-- Attachment #2: fix_fs_bind_tests_for_busybox_machines.diff --]
[-- Type: text/plain, Size: 632 bytes --]


Signed-off-by: Suzuki K P <suzuki@in.ibm.com>

Index: ltp/testscripts/test_fs_bind.sh
===================================================================
--- ltp.orig/testscripts/test_fs_bind.sh	2009-12-22 03:28:25.000000000 +0000
+++ ltp/testscripts/test_fs_bind.sh	2010-04-26 05:50:41.000000000 +0000
@@ -238,7 +238,7 @@
 	# new mounts around and will never remove mounts outside the test
 	# directory
 	( while grep_proc_mounts ; do
-		grep_proc_mounts | awk '{print $2}' | xargs -r --max-args=1 umount -l
+		grep_proc_mounts | awk '{print $2}' | xargs -r -n 1 umount -l
 	done ) >& /dev/null
 	
 	# mount list and exit with 0

[-- Attachment #3: Type: text/plain, Size: 79 bytes --]

------------------------------------------------------------------------------

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2010-05-05  4:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26  6:36 [LTP] PATCH : test_fs_bind testscript for busybox machines Suzuki Poulose
2010-04-26  7:48 ` Rishikesh K Rajak
2010-05-04 22:35 ` Matt Helsley
2010-05-05  4:44   ` Rishikesh K Rajak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.