We will use this in a moment.
Signed-off-by: Ian Jackson <iwj@xenproject.org>
eval "$out_vn=\"\$out_$out_val\""
}
+stripy_rand () {
+ # feel free to pass not-real values for $job
+ # if desired to perturb the hash, etc.
+ local job="$1"; shift
+ local out_vn="$1"; shift
+ local hash="$( echo "$job $out_vn" | sha256sum )"
+ hash="${hash:0:7}"
+ local ix=$(( (0x$hash * $#) / 0x10000000 + 1 ))
+ out_val="${@:$ix:1}"
+ eval "$out_vn=\"\$out_val\""
+}
+
branch_wants_migrupgrade_tests () {
case "$branch" in
xen-3.*-testing) return 1 ;;