From 56ec6ea8fbb3f5fd1e29ab004a796b85423f10f2 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Fri, 1 Jul 2022 09:09:26 -0400 Subject: [PATCH] Get GitHub action script directory reference24 --- github_action_xcat_test.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github_action_xcat_test.pl b/github_action_xcat_test.pl index 25a7e63a6..fc995a964 100644 --- a/github_action_xcat_test.pl +++ b/github_action_xcat_test.pl @@ -530,7 +530,7 @@ sub run_fast_regression_test{ @output = runcmd("cat $conf_file"); print Dumper \@output; - $cmd = "sudo bash -c '. /etc/profile.d/xcat.sh && sudo xcattest -s \"ci_test\" -l'"; + $cmd = "sudo /opt/xcat/bin/xcattest -s \"ci_test\" -l'"; my @caseslist = runcmd("$cmd"); if($::RUNCMD_RC){ print RED "[run_fast_regression_test] $cmd ....[Failed]\n"; @@ -551,7 +551,7 @@ sub run_fast_regression_test{ my $failnum = 0; foreach my $case (@caseslist){ ++$x; - $cmd = "sudo bash -c '. /etc/profile.d/xcat.sh && sudo xcattest -f $conf_file -t $case'"; + $cmd = "sudo /opt/xcat/bin/xcattest -f $conf_file -t $case'"; print "[run_fast_regression_test] run $x: $cmd\n"; @output = runcmd("$cmd"); #print Dumper \@output;