aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtestsuite/runtest11
1 files changed, 7 insertions, 4 deletions
diff --git a/testsuite/runtest b/testsuite/runtest
index 32ff462d7..4ac1d3bfe 100755
--- a/testsuite/runtest
+++ b/testsuite/runtest
@@ -101,15 +101,18 @@ for applet in $applets; do
101 applet=$(echo "$applet" | sed -n 's/\.tests$//p') 101 applet=$(echo "$applet" | sed -n 's/\.tests$//p')
102 if [ ${#applet} -ne 0 ] 102 if [ ${#applet} -ne 0 ]
103 then 103 then
104 mkdir links 2>/dev/null 104 if [ -d links ]; then
105 rm -f links/"$applet" 105 rm -f links/"$applet"
106 else
107 mkdir links 2> /dev/null
108 fi
106 ln -s ${bindir:-../..}/busybox links/"$applet" 109 ln -s ${bindir:-../..}/busybox links/"$applet"
107 PATH="$srcdir:$PATH" COMMAND="links/$applet" \ 110 PATH="$srcdir:$PATH" COMMAND="links/$applet" \
108 "${srcdir:-.}/$applet".tests 111 "${srcdir:-.}/$applet".tests
109 if [ $? -ne 0 ]; then status=1; fi 112 if [ $? -ne 0 ]; then status=1; fi
110 fi 113 fi
111 114
112
113done 115done
114 116rm -f links/*
117rmdir links
115exit $status 118exit $status