From 4498dffce330c1d07b2ccafa73807c771addd3e8 Mon Sep 17 00:00:00 2001 From: Alexander Kartashov Date: Thu, 4 Apr 2013 16:28:53 +0000 Subject: [PATCH] zdtm.sh: fixed shared libraries retrieval The pipe retrieving shared libraries the test depends on ldd $test_path $ps_path | awk '/^\s/{ print $1 }' doesn't actually produce any output so all NS tests fail bacause the system linker fails to locate shared libraries the test program depends on. This patch fixes the pipe to retrieve the list of libraries properly. Signed-off-by: Alexander Kartashov Acked-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm.sh b/test/zdtm.sh index f71bbed8a..528c8acb9 100755 --- a/test/zdtm.sh +++ b/test/zdtm.sh @@ -194,7 +194,7 @@ construct_root() cp $ps_path $root/bin mkdir $libdir $libdir2 - for i in `ldd $test_path $ps_path | awk '/^\s/{ print $1 }' | grep -v vdso`; do + for i in `ldd $test_path $ps_path | grep -P '^\s' | awk '{ print $1 }' | grep -v vdso`; do local lib=`basename $i` [ -f $libdir/$lib ] && continue || [ -f $i ] && cp $i $libdir && cp $i $libdir2 && continue ||