Message ID | 20211004170654.21864-7-iwj@xenproject.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | allocation / test fixes | expand |
diff --git a/mg-repro-setup b/mg-repro-setup index 56d27d4ef..895f29963 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -260,6 +260,17 @@ if [ "${alloc_idents[*]}" ]; then echo >&2 'cannot hand-allocate in a way that will free' exit 1 fi + + set +e + alloc_output=$( + ./mg-allocate --dry-run $duration "${alloc_specs[@]}" 2>&1 + ) + alloc_rc=$? + set -e + test $alloc_rc = 0 || + fail "requested allocation(s) infeasible: +$alloc_output +" fi flight=$(./cs-adjust-flight new:$blessing)
Signed-off-by: Ian Jackson <iwj@xenproject.org> --- mg-repro-setup | 11 +++++++++++ 1 file changed, 11 insertions(+)