Actions
action #52247
closedautoinst-log.txt opened with wrong path
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2019-05-28
Due date:
% Done:
0%
Estimated time:
Description
austoinst-log.txt is currently opened as though it was in .
but really it is in ./testresults/
basetest.pm contains
open(my $AUTOINSTLOG, "<", "autoinst-log.txt") || die('Could not open autoinst-log.txt for reading');
which is meant to open the log file created in bmwqemu.pm
$logger = Mojo::Log->new(level => 'debug', path => catfile(result_dir, 'autoinst-log.txt'));
but as far as I can tell there is no chdir into result_dir anywhere, so the CWD at the time of the open() is still the same CWD as it was when the logger was initialized, and that is one directory above autoinst-log.txt. Printing getcwd just before the open call confirms as much.
Current master now always trip over the incorrect open call and die.
Actions