2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

1, test case for nodeset -V to show server info

2, allow xcattest get 'var' type config from environment variable when no config file specified.
For example, when given 'XCATTEST_CN=fake1', xcattest will set $$CN=fake1
This commit is contained in:
Bin Xu
2017-08-03 16:41:37 +08:00
parent 8fbf24d781
commit 6e9825f0d1
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) {