summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/rds/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/net/rds/test.py')
-rwxr-xr-x[-rw-r--r--]tools/testing/selftests/net/rds/test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/rds/test.py b/tools/testing/selftests/net/rds/test.py
index e6bb109bcead..4a7178d11193 100644..100755
--- a/tools/testing/selftests/net/rds/test.py
+++ b/tools/testing/selftests/net/rds/test.py
@@ -14,8 +14,11 @@ import sys
import atexit
from pwd import getpwuid
from os import stat
-from lib.py import ip
+# Allow utils module to be imported from different directory
+this_dir = os.path.dirname(os.path.realpath(__file__))
+sys.path.append(os.path.join(this_dir, "../"))
+from lib.py.utils import ip
libc = ctypes.cdll.LoadLibrary('libc.so.6')
setns = libc.setns