mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-04 12:07:56 +00:00
Merge pull request #7787 from VersatusHPC/fix/rflash-fpc-usage
fix(rflash): show NeXtScale FPC URL syntax
This commit is contained in:
@@ -415,6 +415,8 @@ my %usage = (
|
||||
rflash <noderange> -p <rpm_directory> [--activate {disruptive|deferred}] [-d <data_directory>]
|
||||
rflash <noderange> [--commit | --recover]
|
||||
rflash <noderange> [--bpa_acdl]
|
||||
NeXtScale FPC specific:
|
||||
rflash <noderange> http://<server>/path/to/update.rom
|
||||
OpenPOWER BMC specific (using IPMI):
|
||||
rflash <noderange> [<hpm_file_path>|-d <data_directory>] [-c|--check] [--retry=<count>]
|
||||
rflash <noderange> --recover <bmc_file_path>
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use FindBin;
|
||||
use lib "$FindBin::Bin/../../perl-xCAT";
|
||||
use Test::More;
|
||||
|
||||
BEGIN {
|
||||
package xCAT::Utils;
|
||||
sub Version { return 'test'; }
|
||||
}
|
||||
|
||||
{
|
||||
local $INC{'xCAT/Utils.pm'} = __FILE__;
|
||||
require xCAT::Usage;
|
||||
}
|
||||
|
||||
my $usage = xCAT::Usage->parseCommand( 'rflash', '--help' );
|
||||
|
||||
like( $usage, qr/\QNeXtScale FPC specific:\E/x,
|
||||
'rflash help identifies the NeXtScale FPC form' );
|
||||
like(
|
||||
$usage,
|
||||
qr{\Qrflash <noderange> http://<server>/path/to/update.rom\E}x,
|
||||
'rflash help gives the complete FPC firmware URL syntax'
|
||||
);
|
||||
|
||||
like( $usage, qr/\QPPC (using Direct FSP Management) specific:\E/x,
|
||||
'rflash help retains the Direct FSP form' );
|
||||
like( $usage, qr/\QOpenPOWER BMC specific (using IPMI):\E/x,
|
||||
'rflash help retains the OpenPOWER IPMI form' );
|
||||
|
||||
done_testing();
|
||||
Reference in New Issue
Block a user