2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Merge pull request #7075 from gurevichmark/nodeset_shell_debug2

Testcase script needs to capture output and display using send_msg()
This commit is contained in:
besawn 2021-12-06 17:18:47 -05:00 committed by GitHub
commit 2d8394c495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;