Commit 4498dffc authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

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: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 91b48d12
...@@ -194,7 +194,7 @@ construct_root() ...@@ -194,7 +194,7 @@ construct_root()
cp $ps_path $root/bin cp $ps_path $root/bin
mkdir $libdir $libdir2 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` local lib=`basename $i`
[ -f $libdir/$lib ] && continue || [ -f $libdir/$lib ] && continue ||
[ -f $i ] && cp $i $libdir && cp $i $libdir2 && continue || [ -f $i ] && cp $i $libdir && cp $i $libdir2 && continue ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment