Fix tests broken by execpath change

Commit 5cbc2167ec changed the servald 'start'
command to use a different argv[0], which meant that the testdefs.sh
get_servald_pids() function no longer detected running servald processes.
This broke most of the 'server' test cases.

testdefs.sh setup_servald() now makes a full copy of servald once per test
case, not just a symbolic link, so that the logic in get_servald_pids() works
again.
This commit is contained in:
Andrew Bettison 2012-08-21 13:28:34 +09:30
parent 48c899df39
commit e534d93a84

View File

@ -66,7 +66,7 @@ setup_servald() {
error "servald executable not present: $servald"
return 1
fi
ln -f -s "$servald_build_executable" $servald
cp -f "$servald_build_executable" $servald
unset SERVALD_OUTPUT_DELIMITER
unset SERVALD_SERVER_START_DELAY
unset SERVALD_LOG_FILE