gitea.t: try opening the file a few times

This commit is contained in:
Graham Christensen 2022-02-10 11:01:09 -05:00
parent 4acaf9c8b0
commit e709a17508

View file

@ -60,6 +60,13 @@ if (!defined($pid = fork())) {
kill('INT', $pid); kill('INT', $pid);
} }
for my $i (1..10) {
if (! -f $filename) {
diag("$filename does not yet exist");
sleep(1);
}
}
open(my $fh, "<", $filename) or die ("Can't open(): $!\n"); open(my $fh, "<", $filename) or die ("Can't open(): $!\n");
my $i = 0; my $i = 0;
my $uri = <$fh>; my $uri = <$fh>;