- remove dangling symlinks after the runs
- check if the temporary directory containing the links exists rather than unconditionally creating it for every single applet.
This commit is contained in:
parent
380ad123ac
commit
23bc647b35
@ -101,15 +101,18 @@ for applet in $applets; do
|
|||||||
applet=$(echo "$applet" | sed -n 's/\.tests$//p')
|
applet=$(echo "$applet" | sed -n 's/\.tests$//p')
|
||||||
if [ ${#applet} -ne 0 ]
|
if [ ${#applet} -ne 0 ]
|
||||||
then
|
then
|
||||||
mkdir links 2>/dev/null
|
if [ -d links ]; then
|
||||||
rm -f links/"$applet"
|
rm -f links/"$applet"
|
||||||
|
else
|
||||||
|
mkdir links 2> /dev/null
|
||||||
|
fi
|
||||||
ln -s ${bindir:-../..}/busybox links/"$applet"
|
ln -s ${bindir:-../..}/busybox links/"$applet"
|
||||||
PATH="$srcdir:$PATH" COMMAND="links/$applet" \
|
PATH="$srcdir:$PATH" COMMAND="links/$applet" \
|
||||||
"${srcdir:-.}/$applet".tests
|
"${srcdir:-.}/$applet".tests
|
||||||
if [ $? -ne 0 ]; then status=1; fi
|
if [ $? -ne 0 ]; then status=1; fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
rm -f links/*
|
||||||
|
rmdir links
|
||||||
exit $status
|
exit $status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user