diff options
author | Harald Hoyer <harald@redhat.com> | 2009-10-26 15:35:42 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-10-27 16:02:54 +0100 |
commit | 2cc8cbeaf4bb0d70e57b0be86062b16c1e4729c6 (patch) | |
tree | fba87406fa7fdbafe964004788f9670faa9e4bf5 /test | |
parent | 24dcacc78fb7608303d7e0a8f2d0f197713254b4 (diff) |
test/TEST-20-NFS: kill server if pid file present on run()
Diffstat (limited to 'test')
-rwxr-xr-x | test/TEST-20-NFS/test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh index ad8e22d..040dff6 100755 --- a/test/TEST-20-NFS/test.sh +++ b/test/TEST-20-NFS/test.sh @@ -168,6 +168,11 @@ test_nfsv4() { } test_run() { + if [[ -s server.pid ]]; then + sudo kill -TERM $(cat server.pid) + rm -f server.pid + fi + if ! run_server; then echo "Failed to start server" 1>&2 return 1 |