svn commit: trunk/busybox/testsuite
aldot at busybox.net
aldot at busybox.net
Fri Sep 23 17:42:34 UTC 2005
Author: aldot
Date: 2005-09-23 10:42:33 -0700 (Fri, 23 Sep 2005)
New Revision: 11599
Log:
- remove dangling symlinks after the runs
- check if the temporary directory containing the links exists rather
than unconditionally creating it for every single applet.
Modified:
trunk/busybox/testsuite/runtest
Changeset:
Modified: trunk/busybox/testsuite/runtest
===================================================================
--- trunk/busybox/testsuite/runtest 2005-09-23 16:52:09 UTC (rev 11598)
+++ trunk/busybox/testsuite/runtest 2005-09-23 17:42:33 UTC (rev 11599)
@@ -101,15 +101,18 @@
applet=$(echo "$applet" | sed -n 's/\.tests$//p')
if [ ${#applet} -ne 0 ]
then
- mkdir links 2>/dev/null
- rm -f links/"$applet"
+ if [ -d links ]; then
+ rm -f links/"$applet"
+ else
+ mkdir links 2> /dev/null
+ fi
ln -s ${bindir:-../..}/busybox links/"$applet"
PATH="$srcdir:$PATH" COMMAND="links/$applet" \
"${srcdir:-.}/$applet".tests
if [ $? -ne 0 ]; then status=1; fi
fi
-
done
-
+rm -f links/*
+rmdir links
exit $status
More information about the busybox-cvs
mailing list