diff options
author | Harshavardhana <harsha@harshavardhana.net> | 2014-08-19 16:14:03 -0700 |
---|---|---|
committer | Harshavardhana <harsha@harshavardhana.net> | 2014-08-26 15:27:29 -0700 |
commit | 74cf4e1920db1edae6728cfe632e4ca7aea5be59 (patch) | |
tree | 33f116ca794e57979ceccd340f8151995e51569a /tests/utils/create-files.py | |
parent | 77ce88681c15e711e87d23b891a488b2fd825eb0 (diff) |
porting: `pidof` portability for OSX/FreeBSD
- Provide a portable `pidof` just to be used specifically with
glusterfs regression tests on OSX and FreeBSD. This was
written after countless hrs of effort to get a sane `pidof`
working on either of the environments.
`pidof` comes at the wake of lack of proper procfs support
and also incompatible way of handling process names since
glusterd/glusterfs are symbolic links to 'glusterfsd'
- tests/utils/* directory should be part of 'PATH' to avoid
abspath calculation using $(dirname)
- cleanup() - rpcinfo command prints error on FreeBSD/OSX fix it
Change-Id: I35f86273624cb279da1c8fae056ca27669e251d8
BUG: 1131713
Signed-off-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-on: http://review.gluster.org/8499
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'tests/utils/create-files.py')
-rwxr-xr-x | tests/utils/create-files.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils/create-files.py b/tests/utils/create-files.py index 0d937eff978..05cf1279999 100755 --- a/tests/utils/create-files.py +++ b/tests/utils/create-files.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # This script was developed by Vijaykumar Koppad (vkoppad@redhat.com) # The latest version of this script can found at |