]> xenbits.xensource.com Git - osstest.git/commitdiff
cri-getplatforms: Honour new MF_SIMULATE_PLATFORMS env var
authorIan Jackson <iwj@xenproject.org>
Thu, 1 Oct 2020 15:36:17 +0000 (16:36 +0100)
committerIan Jackson <iwj@xenproject.org>
Thu, 1 Oct 2020 16:12:35 +0000 (17:12 +0100)
This is to be expanded by the shell, using eval, so that it can refer
to $xenarch, $suite and $blessing.

No functional change if this variable is unset, or empty.  If it is
set to a single space, cri-getplatforms produces no output (as it does
anyway in standalone mode).

Signed-off-by: Ian Jackson <iwj@xenproject.org>
cri-getplatforms

index 1f206908c004dfb08ac606aa6aa72d93ee2c050f..9f4cae5655ae08dd76091bb08637bb8fa0565a27 100755 (executable)
 getplatforms () {
        local xenarch=$1
        local suite=$2
+       if [ "x$MF_SIMULATE_PLATFORMS" != x ]; then
+               eval "echo $MF_SIMULATE_PLATFORMS"
+               return
+       fi
         perl -e '
                 use Osstest;
                 csreadconfig();