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

Get GitHub action script directory reference23

This commit is contained in:
Mark Gurevich 2022-06-30 17:03:17 -04:00
parent 3789b2f6e4
commit e52c04a4a1

View File

@ -505,11 +505,13 @@ sub run_fast_regression_test{
chomp($hostname);
print "hostname = $hostname\n";
my $conf_file = "$ENV{'PWD'}/regression.conf";
#print "MG about to chmod 0777 file $conf_file\n";
print "MG about to touch file $conf_file\n";
system "sudo touch $conf_file";
print "MG about to chmod 0777 file $conf_file\n";
#chmod 0777, $conf_file;
system "sudo chmod 777 $conf_file";
#print "MG about to open file $conf_file\n";
open(my $fh, '+>', $conf_file) or die "Could not open test configuration file $!";
open(my $fh, '>', $conf_file) or die "Could not open test configuration file $!";
print "MG file opened\n";
#$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";