Tapper::MCP::State::Details
use Tapper::MCP::State::Details; my $state_details = Tapper::MCP::State::Details->new(); $state_details->prc_results(0, {success => 0, mg => 'No success'});
Update database entry.
@return success - 0 @return error - error string
Tapper::MCP::State::Details - Encapsulate state_details attribute of MCP::State
Getter and setter for results array for whole test. Setter adds given parameter instead of substituting.
@param hash ref - containing success(bool) and msg(string)
Initialize the state or read it back from database.
The reboot call was successfully executed, now update the state for waiting for the first message.
@return int - new timeout
Getter and setter for current state name.
@param string - state name (optional) @return string - state name
Set current_state of all PRCs to given state.
@param string - state name
Getter and setter for keep_alive_timeout_date
@optparam int - new timeout_date for keep_alive
@return int - timeout date for keep_alive
Getter for keep_alive_timeout_date
@param int - new timeout date for keep_alive
@return int - new timeout date for keep_alive
Getter and setter for keep_alive_timeout_span. Note: This function can not set the timeout to undef.
@optparam int - new timeout_span
Getter and setter for installer timeout date.
@param int - new installer timeout date
@return string - installer timeout date
Update timeouts for "installation started".
@return int - new timeout span
Sets timeouts for given PRC to the ones associated with booting of this PRC started.
@param int - PRC number
@return int - boot timeout span
Get the current timeout date for given PRC
@return int - timeout date
Getter and setter for results array for of one PRC. Setter adds given parameter instead of substituting. If no argument is given, all PRC results are returned.
@param int - PRC number (optional) @param hash ref - containing success(bool) and msg(string) (optional)
Return number of PRCs
@return int - number of PRCs
Getter and setter for current state of given PRC.
@param int - PRC number @param string - state name (optional)
@return string - state name
Check whether all PRCs have finished already.
@param all PRCs finished - 1 @param not all PRCs finished - 0
Set next PRC timeout as current and return it as timeout span.
@return int - next timeout span
Get or set the number of the testprogram currently running in given PRC.
@param int - PRC number @param int - test number (optional)
@return test running - test number starting from 0 @return no test running - undef
Check all PRCs and return the minimum of their upcoming timeouts in seconds.
@return timeout span for the next state change during testing
AMD OSRC Tapper Team <tapper@amd64.org>
Tapper Team <tapper-ops@amazon.com>
This software is Copyright (c) 2019 by Advanced Micro Devices, Inc..
This is free software, licensed under:
The (two-clause) FreeBSD License
To install Tapper::MCP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tapper::MCP
CPAN shell
perl -MCPAN -e shell install Tapper::MCP
For more information on module installation, please visit the detailed CPAN module installation guide.