[apt-proxy-devel] r640 - trunk

Chris Halls halls at alioth.debian.org
Tue Jan 9 12:17:05 CET 2007


Author: halls
Date: Tue Jan  9 12:17:04 2007
New Revision: 640

Modified:
   trunk/runtests
Log:
Automatically add 'apt_proxy.test.' to arguments if not supplied
example: ./runtests test_cache


Modified: trunk/runtests
==============================================================================
--- trunk/runtests	(original)
+++ trunk/runtests	Tue Jan  9 12:17:04 2007
@@ -76,8 +76,17 @@
 
 cd $rootdir
 if [ $# -eq 0 ]; then
-  set -- apt_proxy.test
+  args=apt_proxy.test
+else
+  args=
+  for i in "$@"; do
+    if [[ "$i" == apt_proxy.test.* ]] ; then
+      args="$args $i"
+    else
+      args="$args apt_proxy.test.$i"
+    fi
+  done
 fi
 rm -f `pwd`/unittests.log
 set -x
-PYTHONPATH="`pwd`" trial --logfile `pwd`/unittests.log $@
+PYTHONPATH="`pwd`" trial --logfile `pwd`/unittests.log $args



More information about the apt-proxy-devel mailing list