Perftest: shellcheck

This commit is contained in:
rand00 2023-01-12 15:36:19 +01:00
parent 74269e4ccd
commit 932d10cbaf
2 changed files with 1 additions and 5 deletions

View file

@ -30,7 +30,7 @@ get_bin_hash () {
N=0 N=0
while read UUID; do while read -r UUID; do
BIN_SHA256=$(get_bin_hash "$UUID") BIN_SHA256=$(get_bin_hash "$UUID")
CSV="${PERFJOB_DIR}/${BIN_SHA256}/siege_test01.csv" CSV="${PERFJOB_DIR}/${BIN_SHA256}/siege_test01.csv"

View file

@ -40,11 +40,9 @@ scp -r "$PERFSCRIPT_DIR"/* "$SERVER_W_DIR"
#> goto problem: backgrounding a task make it not fail this script :/ #> goto problem: backgrounding a task make it not fail this script :/
info initializing context for unikernel info initializing context for unikernel
$SSH "cd $SERVER_DIR; ./init.sh" & $SSH "cd $SERVER_DIR; ./init.sh" &
INIT_PID=$!
info running unikernel in background info running unikernel in background
$SSH "cd $SERVER_DIR; ./run-unikernel.sh" & $SSH "cd $SERVER_DIR; ./run-unikernel.sh" &
UNIKERNEL_PID=$!
info sleeping a bit before test info sleeping a bit before test
sleep 5 sleep 5
@ -54,11 +52,9 @@ $SSH "cd $SERVER_DIR; ./run-test.sh"
info killing unikernel info killing unikernel
$SSH "cd $SERVER_DIR; kill "'$(cat run-unikernel.sh.PID)' || echo "couldn't kill: unikernel not running" $SSH "cd $SERVER_DIR; kill "'$(cat run-unikernel.sh.PID)' || echo "couldn't kill: unikernel not running"
#kill "$UNIKERNEL_PID"
info killing init-daemon info killing init-daemon
$SSH "cd $SERVER_DIR; kill "'$(cat init.sh.PID)' || echo "couldn't kill: git daemon not running" $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" info copying results to "$PERFDATA_DIR"
if [ ! -e "$PERFDATA_DIR" ]; then if [ ! -e "$PERFDATA_DIR" ]; then