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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user