r288: Don't forget to kill nbd-server the second time; thanks to Patrice Dumas
authoryoe <yoe>
Wed, 17 Oct 2007 09:01:22 +0000 (09:01 +0000)
committeryoe <yoe>
Wed, 17 Oct 2007 09:01:22 +0000 (09:01 +0000)
simple_test

index 7a5b1d3..71226f2 100755 (executable)
@@ -36,6 +36,12 @@ PID=$!
 sleep 1
 ./nbd-tester-client localhost 11111
 retval=$?
+if [ -f nbd-server.pid ]
+then
+       kill `cat nbd-server.pid`
+else
+       kill $PID
+fi
 rm -f nbd-server.pid
 rm -f nbd-server.conf
 rm -f $tmpnam