2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 01:26:38 +00:00

Testcase script needs to capture output and display using send_msg()

This commit is contained in:
Mark Gurevich 2021-12-06 14:05:24 -05:00
parent 4c84b58870
commit 886446523b

View File

@ -278,7 +278,8 @@ sub testxdsh {
`$xdsh_command`;
if ($?) {
# First attempt to run xdsh failed, display console log to see what happened, then try few more times
`nodels $noderange | xargs -I % tail -v --lines 25 /var/log/consoles/%.log`;
my $console_log = `nodels $noderange | xargs -I % tail -v --lines 25 /var/log/consoles/%.log`;
send_msg(2, "Console log: $console_log \n");
my @i = (1..5);
for (@i) {
sleep 300;