mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 17:46:38 +00:00
Merge pull request #3605 from robin2008/showxcatsvr-case
[Test Case] modify the existing case to cover #3474: CLI could show server info enhancement
This commit is contained in:
commit
d04aaf03bb
@ -3,7 +3,11 @@ os:Linux
|
||||
cmd:nodeset $$CN stat
|
||||
check:rc==0
|
||||
check:output=~$$CN:\s+[discover|boot|reboot|install|netboot|shell|standby]
|
||||
cmd:nodeset $$CN stat -V
|
||||
check:rc==0
|
||||
check:output=~$$CN:\s+\[\w+\]:\s+[discover|boot|reboot|install|netboot|shell|standby]
|
||||
end
|
||||
|
||||
start:nodeset_noderange
|
||||
os:Linux
|
||||
cmd:nodeset $$CN test
|
||||
|
@ -220,6 +220,13 @@ if (defined($configfile)) {
|
||||
}
|
||||
} else {
|
||||
$setup_env_by_config_file = 0;
|
||||
# Leverage environment variable to used in test case
|
||||
foreach (keys %ENV) {
|
||||
if (/^XCATTEST_/) {
|
||||
my @envname=split("_",$_,2);
|
||||
$config{var}{$envname[-1]} = $ENV{$_};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($restore) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user