2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 18:20:27 +00:00

fix CI issue (#5821)

--force-yes is deprecated
This commit is contained in:
Yuan Bai
2018-11-20 15:21:51 +08:00
committed by Bin Xu
parent ee7f545062
commit 317bb1f499

View File

@@ -339,7 +339,7 @@ sub install_xcat{
}
}
my $cmd = "sudo apt-get install xcat --force-yes";
my $cmd = "sudo apt-get install xcat --allow-remove-essential --allow-unauthenticated";
@output = runcmd("$cmd");
#print ">>>>>Dumper the output of '$cmd'\n";
#print Dumper \@output;
@@ -448,7 +448,7 @@ sub check_syntax{
# Return code:
#--------------------------------------------------------
sub run_fast_regression_test{
my $cmd = "sudo apt-get install xcat-test --force-yes";
my $cmd = "sudo apt-get install xcat-test --allow-remove-essential --allow-unauthenticated";
my @output = runcmd("$cmd");
if($::RUNCMD_RC){
print RED "[run_fast_regression_test] $cmd ....[Failed]\n";