Whamcloud - gitweb
LU-4030 tests: use free_fd() to allocate file descriptor 81/8181/2
authorVladimir Saveliev <vladimir_saveliev@xyratex.com>
Sat, 2 Nov 2013 15:44:11 +0000 (19:44 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 19 Nov 2013 13:59:05 +0000 (13:59 +0000)
commit1f9235152b2f44c7bd64c5c021066f1984f341e6
tree5e5eb3f688e72d705d3b23c2398d1eaf9b0c9064
parent675c86951ba8a92c0008c66cdeb1fd329c7a4412
LU-4030 tests: use free_fd() to allocate file descriptor

free_fd() lists /proc/self/fd to find the smallest unused file
descriptor
sanity test_31n is changed to use free_fd() instead of using hardcoded
173
sanity test_236 is changed to use free_fd() instead of using "{FD}<>"
which is not available on eariler bash

Signed-off-by: Vladimir Saveliev <vladimir_saveliev@xyratex.com>
Change-Id: Ie13da99e4a758d7169454c7a6b3b58c594b30ecc
Reviewed-on: http://review.whamcloud.com/8181
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/sanity.sh
lustre/tests/test-framework.sh