Message ID | 20200514141951.29371-5-ian.jackson@eu.citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Four misc small fixes | expand |
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; }
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.jackson@eu.citrix.com> --- Osstest/TestSupport.pm | 6 ++++++ 1 file changed, 6 insertions(+)