- Timestamp:
- Jul 2, 2015, 11:13:59 AM (7 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- 7adbcd7
- Parents:
- e021722
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/runtests
re021722 rae38a49 1 1 #!/bin/bash 2 2 3 # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net> 3 # Authors: 4 # Daniel Kahn Gillmor <dkg@fifthhorseman.net> 5 # Thomas Klute <thomas2.klute@uni-dortmund.de> 4 6 5 7 set -e … … 24 26 fi 25 27 26 function stop_msva() { 27 kill %1 28 function stop_msva() 29 { 30 kill_by_pidfile "${msva_pidfile}" 31 unset msva_pidfile 28 32 } 29 33 … … 108 112 109 113 if [ -n "${USE_MSVA}" ]; then 110 GNUPGHOME=msva.gnupghome MSVA_KEYSERVER_POLICY=never monkeysphere-validation-agent & 114 msva_pidfile="$(mktemp mod_gnutls_test-XXXXXX.pid)" 115 GNUPGHOME=msva.gnupghome MSVA_KEYSERVER_POLICY=never run_with_pidfile "${msva_pidfile}" monkeysphere-validation-agent & 111 116 trap stop_msva EXIT 112 117 … … 189 194 if [ -n "${USE_MSVA}" ]; then 190 195 stop_msva 191 fi 196 # Without explicitly resetting the trap function, it would be 197 # called again on exit. Of course, we could just not stop MSVA and 198 # let the trap do the work, but I think the code is easier to 199 # understand like this. 200 trap - EXIT 201 fi
Note: See TracChangeset
for help on using the changeset viewer.