소스 검색

Kill all durio instances after the test is done.

Jing Yang 4 년 전
부모
커밋
fb67f52c1e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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'