mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
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:
parent
48c899df39
commit
e534d93a84
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user