Skip to content

Commit

Permalink
(hw-results/run_and_collect) add HWREF_NAME envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
bensimner committed May 16, 2024
1 parent ad6cf20 commit 20a56e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hw-results/run_and_collect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
# with a default run and batch size
# directing the output to hw-refs/device_name/logs/YYYY-MM-DD.log
#
# device_name is the HWREF_NAME env var, or simply the machine hostname if
# that does not exist.
#
# Example: ./run_and_collect.sh MP+pos --run-forever
# Example: HWREF_NAME=myResults ./run_and_collect.sh MP+pos --run-forever

HERE=$(dirname "$0")
HARNESS_ROOT=$(dirname ${HERE})
KVM_LITMUS=${HARNESS_ROOT}/kvm_litmus
TS=$(date -I)
RESULTS_DIR=${HERE}/hw-refs/$(hostname)
RESULTS_DIR=${HERE}/hw-refs/${HWREF_NAME:-$(hostname)}
mkdir -p ${RESULTS_DIR}/logs
${KVM_LITMUS} --id > ${RESULTS_DIR}/id.txt
nohup ${KVM_LITMUS} -q -n500k -b2k $@ >> ${RESULTS_DIR}/logs/${TS}.log &

0 comments on commit 20a56e4

Please sign in to comment.