This takes effect on everything that uses selecthost().  The result is
that PDU operations are made manual.  This can be useful for testing
etc.

Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 Osstest/TestSupport.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index 3700a8fe..1e7da676 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -1059,6 +1059,12 @@ sub power_cycle_host_setup ($) {
            MethObjs => power_cycle_parse_method($ho, $spec),
         };
     }
+    if ($ENV{OSSTEST_PDU_MANUAL}) {
+       @approaches = ({
+            Name => 'manual-override',
+            MethObjs => power_cycle_parse_method($ho, 'manual'),
+        });
+    }
     $ho->{PowerApproaches} = \@approaches;
 }
 
-- 
2.20.1


Reply via email to