diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2019-07-30 00:07:10 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2019-09-07 15:59:56 +0300 |
commit | 4c1ee3e227045fc1dc07b10ac7a538a68299693b (patch) | |
tree | 8ae3ce79bf9d1f8a9ba440feaf42feaf38401fda /test/others/mounts | |
parent | 5aa72e723707e2bd7e8ed9841c2ad392781d066d (diff) |
test/other: Resolve Py3 compatibility issues
When Python 2 is not installed we assume that /usr/bin/python refers to
version 3 of Python and the executable /usr/bin/python2 does not exist.
This commit also resolves a compatibility issue with Popen where in
Py2 file descriptors will be inherited by the child process and in
Py3 they will be closed by default.
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Diffstat (limited to 'test/others/mounts')
-rwxr-xr-x | test/others/mounts/mounts.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/others/mounts/mounts.sh b/test/others/mounts/mounts.sh index a9a1cc80c..19116d0cf 100755 --- a/test/others/mounts/mounts.sh +++ b/test/others/mounts/mounts.sh @@ -20,7 +20,7 @@ for i in `cat /proc/self/mounts | awk '{ print $2 }'`; do umount -l $i done -python2 mounts.py +python mounts.py kill $INMNTNS_PID while :; do sleep 10 |