[CRIU] [PATCH 2/3] treewide: specify 'python2' instead of 'python' in shebangs of python scripts
Ivan Shapovalov
intelfx at intelfx.name
Fri Feb 19 07:05:50 PST 2016
Signed-off-by: Ivan Shapovalov <intelfx at intelfx.name>
---
test/crit-recode.py | 2 +-
test/mounts/mounts.sh | 2 +-
test/rpc/errno.py | 2 +-
test/rpc/ps_test.py | 2 +-
test/rpc/restore-loop.py | 2 +-
test/rpc/test.py | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/test/crit-recode.py b/test/crit-recode.py
index 7295452..df18e53 100755
--- a/test/crit-recode.py
+++ b/test/crit-recode.py
@@ -1,4 +1,4 @@
-#!/bin/env python
+#!/bin/env python2
import pycriu
import sys
diff --git a/test/mounts/mounts.sh b/test/mounts/mounts.sh
index 19116d0..a9a1cc8 100755
--- a/test/mounts/mounts.sh
+++ b/test/mounts/mounts.sh
@@ -20,7 +20,7 @@ for i in `cat /proc/self/mounts | awk '{ print $2 }'`; do
umount -l $i
done
-python mounts.py
+python2 mounts.py
kill $INMNTNS_PID
while :; do
sleep 10
diff --git a/test/rpc/errno.py b/test/rpc/errno.py
index 666dfff..f2a2991 100755
--- a/test/rpc/errno.py
+++ b/test/rpc/errno.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
# Test criu errno
import socket, os, imp, sys, errno
diff --git a/test/rpc/ps_test.py b/test/rpc/ps_test.py
index 82e5a50..b25ff74 100755
--- a/test/rpc/ps_test.py
+++ b/test/rpc/ps_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
import socket, os, imp, sys, errno
import rpc_pb2 as rpc
diff --git a/test/rpc/restore-loop.py b/test/rpc/restore-loop.py
index 70cb64e..21e93b9 100755
--- a/test/rpc/restore-loop.py
+++ b/test/rpc/restore-loop.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
import socket, os, imp, sys
import rpc_pb2 as rpc
diff --git a/test/rpc/test.py b/test/rpc/test.py
index 7154c00..601a34f 100755
--- a/test/rpc/test.py
+++ b/test/rpc/test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
import socket, os, imp, sys
import rpc_pb2 as rpc
--
2.7.1
More information about the CRIU
mailing list