ceph/qa/nightlies/schedule_subset.sh
Patrick Donnelly acbc26ec12
qa/crontab: simplify and minimize argument specification
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2024-03-11 13:46:22 -04:00

21 lines
295 B
Bash
Executable File

#!/bin/bash
set -e
function prun {
printf '%s\n' "$*" >&2
"$@"
}
partitions="$1"
shift
ARGS=()
ARGS+=("--subset=$((RANDOM % partitions))/$partitions")
if [ -n "$CEPH_QA_EMAIL" ]; then
ARGS+=("--email=$CEPH_QA_EMAIL")
fi
prun teuthology-suite "${ARGS[@]}" $TEUTHOLOGY_SUITE_ARGS "$@"