From 313244045ae30e6408e32941a43fcfc74d5341e8 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Wed, 13 Jul 2022 15:15:54 -0400 Subject: [PATCH] Debug command output12 --- github_action_xcat_test.pl | 2 +- xCAT-test/xcattest | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/github_action_xcat_test.pl b/github_action_xcat_test.pl index 6403d9e71..6187f5d9b 100644 --- a/github_action_xcat_test.pl +++ b/github_action_xcat_test.pl @@ -477,7 +477,7 @@ sub run_fast_regression_test{ @output = runcmd("cat $conf_file"); print Dumper \@output; - $cmd = "sudo /opt/xcat/bin/xcattest -s \"ci_test\" -l | grep restorexcatdb_p"; + $cmd = "sudo /opt/xcat/bin/xcattest -s \"ci_test\" -l | grep chdef_t"; my @caseslist = runcmd("$cmd"); if($::RUNCMD_RC){ print RED "[run_fast_regression_test] $cmd ....[Failed]\n"; diff --git a/xCAT-test/xcattest b/xCAT-test/xcattest index 56847b57e..18557ae69 100755 --- a/xCAT-test/xcattest +++ b/xCAT-test/xcattest @@ -1594,7 +1594,7 @@ sub setup_env_by_configure_file { if (exists $$config_ref{table}) { foreach my $type (keys %{ $$config_ref{table} }) { foreach my $name (keys %{ $$config_ref{table}{$type} }) { - $cmd = "chtab $$config_ref{table}{$type}{$name}{__KEY__}=$name"; + $cmd = "sudo chtab $$config_ref{table}{$type}{$name}{__KEY__}=$name"; foreach my $attr (keys %{ $$config_ref{table}{$type}{$name} }) { if ($attr ne '__KEY__') { $cmd = $cmd . " $type.$attr=$$config_ref{table}{$type}{$name}{$attr}"; @@ -1605,7 +1605,11 @@ sub setup_env_by_configure_file { if ($::RUNCMD_RC != 0) { $$error_ref = "Failed3 to run $cmd OUTPUT: @output"; print Dumper \@output; - my @output2 = &runcmd("lsdef -t site clustersite -i domain -c"); + print "MG Running verification lsdef"; + my @output2 = &runcmd("sudo lsdef -t site clustersite -i domain -c"); + print "MG_LSDEF:\n " . Dumper \@output2; + print "MG Running verification tabdump"; + my @output2 = &runcmd("sudo tabdump site"); print "MG_LSDEF:\n " . Dumper \@output2; return 1; }