| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 6/8] cri-getplatforms: Honour new MF_SIMULATE_PLATFORMS env var
 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@xxxxxxxxxxxxxx>
---
 cri-getplatforms | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/cri-getplatforms b/cri-getplatforms
index 1f206908..9f4cae56 100755
--- a/cri-getplatforms
+++ b/cri-getplatforms
@@ -19,6 +19,10 @@
 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();
-- 
2.20.1
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |