[CRIU] [PATCH] zdtm.py: chdir to dir the py script is in
Andrey Vagin
avagin at openvz.org
Thu Oct 29 04:07:11 PDT 2015
From: Andrew Vagin <avagin at openvz.org>
It allows to execute zdtm.py not only from the test directory.
Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
test/zdtm.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/zdtm.py b/test/zdtm.py
index 354c031..5e0a064 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -17,6 +17,8 @@ import string
import imp
import socket
+os.chdir(os.path.dirname(os.path.abspath(__file__)))
+
prev_line = None
def traceit(f, e, a):
if e == "line":
--
2.4.3
More information about the CRIU
mailing list