Testing: If no port is specified, use a random port, but use 'testenv' as the
directory name so we don't wind up with a thousand test environments lying around.
Authored by: ecarter 2007-08-24
Parent: [r5964]
Child: [r5966]