svn commit: trunk/busybox/testsuite

landley at busybox.net landley at busybox.net
Sat Mar 18 03:01:59 UTC 2006


Author: landley
Date: 2006-03-17 19:01:57 -0800 (Fri, 17 Mar 2006)
New Revision: 14559

Log:
Make the new chroot environment creation infrastructure more flexible about
non-absolute paths.


Modified:
   trunk/busybox/testsuite/testing.sh


Changeset:
Modified: trunk/busybox/testsuite/testing.sh
===================================================================
--- trunk/busybox/testsuite/testing.sh	2006-03-18 03:00:22 UTC (rev 14558)
+++ trunk/busybox/testsuite/testing.sh	2006-03-18 03:01:57 UTC (rev 14559)
@@ -110,13 +110,16 @@
   shift
   for i in "$@"
   do
-    if [ "${i:0:1}" == "/" ]
+    [ "${i:0:1}" == "/" ] || i=$(which $i)
+    [ -f "$dest/$i" ] && continue
+    if [ -e "$i" ]
     then
-      [ -f "$dest/$i" ] && continue
       d=`echo "$i" | grep -o '.*/'` &&
       mkdir -p "$dest/$d" &&
       cat "$i" > "$dest/$i" &&
       chmod +x "$dest/$i"
+    else
+      echo "Not found: $i"
     fi
     mkchroot "$dest" $(ldd "$i" | egrep -o '/.* ')
   done




More information about the busybox-cvs mailing list