From: Ian Jackson Date: Mon, 4 Oct 2021 16:38:59 +0000 (+0100) Subject: mg-repro-setup: Promote an error test to before builds (nfc) X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e7febe5f6edc;p=osstest.git mg-repro-setup: Promote an error test to before builds (nfc) Signed-off-by: Ian Jackson --- diff --git a/mg-repro-setup b/mg-repro-setup index 374176f..56d27d4 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -253,6 +253,15 @@ while [ $# -ne 0 ]; do esac done +if [ "${alloc_idents[*]}" ]; then + if [ x"$OSSTEST_TASK" = x ]; then + # We would have to make a dynamic task and hold the + # fd for it in this script. Would be quite awkward. + echo >&2 'cannot hand-allocate in a way that will free' + exit 1 + fi +fi + flight=$(./cs-adjust-flight new:$blessing) progress "new flight is $flight" @@ -281,13 +290,6 @@ if $statictask; then fi if [ "${alloc_idents[*]}" ]; then - if [ x"$OSSTEST_TASK" = x ]; then - # We would have to make a dynamic task and hold the - # fd for it in this script. Would be quite awkward. - echo >&2 'cannot hand-allocate in a way that will free' - exit 1 - fi - progress "allocating ${alloc_idents[*]} ..." alloc_output=tmp/$flight.allocations ./mg-allocate \