my @commands = @{$params{'commands'}};
cleandir();
+ my @h_opt = ('-h', 'localhost') unless $set_host_succeed;
$exp = Installcheck::Run::run_expect('amrecover', 'TESTCONF',
- '-t', 'localhost', '-o', 'auth=local');
+ @h_opt, '-s', 'localhost', '-t', 'localhost', '-o', 'auth=local');
$exp->log_stdout($debug);
@results = ();
is_deeply([ @results ], [
'server-ready', 'config-set',
- ($set_host_succeed) ? 'host-set' : 'use-sethost',
+ 'host-set',
'> sethost localhost',
'host-set',
"> setdisk $diskname",
is_deeply([ @results ], [
'server-ready', 'config-set',
- ($set_host_succeed) ? 'host-set' : 'use-sethost',
+ 'host-set',
'> sethost localhost ',
'host-set',
'> sethost localhost',