Perftest: shellcheck
This commit is contained in:
parent
74269e4ccd
commit
932d10cbaf
2 changed files with 1 additions and 5 deletions
|
@ -30,7 +30,7 @@ get_bin_hash () {
|
|||
|
||||
N=0
|
||||
|
||||
while read UUID; do
|
||||
while read -r UUID; do
|
||||
|
||||
BIN_SHA256=$(get_bin_hash "$UUID")
|
||||
CSV="${PERFJOB_DIR}/${BIN_SHA256}/siege_test01.csv"
|
||||
|
|
|
@ -40,11 +40,9 @@ scp -r "$PERFSCRIPT_DIR"/* "$SERVER_W_DIR"
|
|||
#> goto problem: backgrounding a task make it not fail this script :/
|
||||
info initializing context for unikernel
|
||||
$SSH "cd $SERVER_DIR; ./init.sh" &
|
||||
INIT_PID=$!
|
||||
|
||||
info running unikernel in background
|
||||
$SSH "cd $SERVER_DIR; ./run-unikernel.sh" &
|
||||
UNIKERNEL_PID=$!
|
||||
|
||||
info sleeping a bit before test
|
||||
sleep 5
|
||||
|
@ -54,11 +52,9 @@ $SSH "cd $SERVER_DIR; ./run-test.sh"
|
|||
|
||||
info killing unikernel
|
||||
$SSH "cd $SERVER_DIR; kill "'$(cat run-unikernel.sh.PID)' || echo "couldn't kill: unikernel not running"
|
||||
#kill "$UNIKERNEL_PID"
|
||||
|
||||
info killing init-daemon
|
||||
$SSH "cd $SERVER_DIR; kill "'$(cat init.sh.PID)' || echo "couldn't kill: git daemon not running"
|
||||
#kill "$INIT_PID"
|
||||
|
||||
info copying results to "$PERFDATA_DIR"
|
||||
if [ ! -e "$PERFDATA_DIR" ]; then
|
||||
|
|
Loading…
Reference in a new issue