2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

Get GitHub action script directory reference18

This commit is contained in:
Mark Gurevich
2022-06-30 16:01:28 -04:00
parent 1d82acb887
commit 084b0dafa1

View File

@@ -505,10 +505,13 @@ sub run_fast_regression_test{
chomp($hostname);
print "hostname = $hostname\n";
my $conf_file = "$ENV{'PWD'}/regression.conf";
open(my $FH, '>', $conf_file) or die "Could not open test configuration file '$conf_file' $!i";
open(my $fh, '>', $conf_file) or die "Could not open test configuration file '$conf_file' $!";
print "MG file opened";
#$cmd = "sudo echo '[System]' > $conf_file; sudo echo 'MN=$hostname' >> $conf_file; sudo echo '[Table_site]' >> $conf_file; sudo echo 'key=domain' >>$conf_file; sudo echo 'value=pok.stglabs.ibm.com' >> $conf_file";
print $FH "[System]\nMN=$hostname\n[Table_site]\nkey=domain\nvalue=pok.stglabs.ibm.com\n";
close($FH);
print $fh "[System]\nMN=$hostname\n[Table_site]\nkey=domain\nvalue=pok.stglabs.ibm.com\n";
print "MG file written";
close($fh);
print "MG file closed";
#@output = runcmd("$cmd");
#if($::RUNCMD_RC){
# print RED "[run_fast_regression_test] $cmd ....[Failed]\n";