mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-21 01:42:15 +00:00
b5181574ea
An [Object_*] line of an xcattest conf declares an xCAT node attribute. vm.othersettings holds several settings separated by a semicolon, which is the syntax the kvm plugin reads, and such a line reaches the node cut at its first semicolon with no message. The reader drops the rest, and the chdef that applies it runs through /bin/bash -c unquoted, so the shell would read the semicolon as a command separator. load_config_file read each line with a regular expression written inline and built the chdef by concatenation, so neither could be measured without a database. xCAT::Test::Conf now holds the three readers and the command builder, and xcattest calls them. The routines keep the behaviour they replace, and both packages install the module. xcattest_conf_object_attr.t fails five of its nine checks on this commit: the semicolon value, the quoting and the order of the assignments. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
11 lines
402 B
Plaintext
11 lines
402 B
Plaintext
xcattest opt/xcat/bin
|
|
bin/xcatperftest opt/xcat/bin
|
|
share/man/man1/* opt/xcat/share/man/man1
|
|
share/doc/man1/* opt/xcat/share/doc/man1
|
|
autotest opt/xcat/share/xcat/tools
|
|
unit opt/xcat/share/xcat/tools/autotest
|
|
integration opt/xcat/share/xcat/tools/autotest
|
|
blackboxtest opt/xcat/share/xcat/tools/autotest
|
|
lib/xCAT/Test/OS.pm opt/xcat/lib/perl/xCAT/Test
|
|
lib/xCAT/Test/Conf.pm opt/xcat/lib/perl/xCAT/Test
|