2
0
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:
Weihua Hu 2017-08-04 12:51:02 +08:00 committed by GitHub
commit d04aaf03bb
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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) {