mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-08 00:13:06 +00:00
fix: fix shellcheck errors, minor improvements
This commit is contained in:
parent
f57808f751
commit
2fde22116c
@ -11,13 +11,20 @@
|
||||
set -e -o pipefail
|
||||
|
||||
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
|
||||
# shellcheck source=./src/clh
|
||||
source "${SCRIPT_DIR}/../src/clh"
|
||||
|
||||
node_count="${1:-2}"
|
||||
repetitions="${2:-1}"
|
||||
output_log="${3:-"${OUTPUTS}/k-node-$(date +%s)-${RANDOM}.csv"}"
|
||||
shift 3
|
||||
file_sizes=("$@")
|
||||
if [ "$#" -gt 3 ]; then
|
||||
shift 3
|
||||
file_sizes=("$@")
|
||||
else
|
||||
echoerr "No file sizes specified, using default (100)."
|
||||
file_sizes=("100")
|
||||
fi
|
||||
|
||||
exp_start "k-node"
|
||||
|
||||
|
||||
5
src/clh
5
src/clh
@ -14,4 +14,7 @@ source "${LIB_SRC}/experiment.bash"
|
||||
exp_set_outputs "${OUTPUTS}"
|
||||
prom_set_outputs "${PROM_TARGETS_DIR}"
|
||||
|
||||
exp_start "default"
|
||||
# If running from an interactive shell, fire the default experiment.
|
||||
if [[ $- =~ i ]]; then
|
||||
exp_start "default"
|
||||
fi
|
||||
|
||||
@ -259,7 +259,7 @@ await_all() {
|
||||
_pm_job_started() {
|
||||
local pid=$1 proc_type=$2
|
||||
shift 2
|
||||
echoerr "[procmon] job started: $pid ($proc_type), args: $*"
|
||||
echoerr "[procmon] job started: $pid ($proc_type), args: ${*:-<no args>}"
|
||||
if [ ! -f "${_pm_output}/${pid}.pid" ]; then
|
||||
touch "${_pm_output}/${pid}.pid"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user