Explorar el Código

Kill all durio instances after the test is done.

Jing Yang hace 4 años
padre
commit
fb67f52c1e
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      durio/build.sh

+ 5 - 1
durio/build.sh

@@ -23,4 +23,8 @@ rsync -av '/tmp/ruaft/durio' bob:/tmp/durio
 ssh bob '
   RUST_LOG=warp,tarpc=error,ruaft=debug,kvraft=debug,durio nohup /tmp/durio 2 1>>/tmp/durio.out 2>>/tmp/durio.err &
 '
-RUST_LOG=warp,tarpc=error,ruaft=debug,kvraft=debug,durio cargo run 0
+
+RUST_LOG=warp,tarpc=error,ruaft=debug,kvraft=debug,durio cargo run 0 || echo "Done"
+
+ssh alice 'pkill -9 durio || echo nothing'
+ssh bob 'pkill -9 durio || echo nothing'