瀏覽代碼

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'