[CRIU] [PATCH 1/5] zdtm.sh: fix absolute path to crtools

Andrey Vagin avagin at openvz.org
Fri Jan 11 14:56:20 EST 2013


zdtm.sh launched by an absolute path exits with an error due to
an incorrect path to crtools

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm.sh b/test/zdtm.sh
index 2862fca..eb84fcc 100644
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -131,7 +131,7 @@ static/inotify00
 $IPC_TEST_LIST
 "
 
-CRTOOLS=`pwd`/`dirname $0`/../crtools
+CRTOOLS=$(readlink -f `dirname $0`/../crtools)
 TINIT=`pwd`/`dirname $0`/zdtm/lib/test_init
 
 test -x $CRTOOLS || {
-- 
1.7.11.7



More information about the CRIU mailing list