forked from lix-project/hydra
gitea.t: try opening the file a few times
This commit is contained in:
parent
4acaf9c8b0
commit
e709a17508
|
@ -60,6 +60,13 @@ if (!defined($pid = fork())) {
|
|||
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");
|
||||
my $i = 0;
|
||||
my $uri = <$fh>;
|
||||
|
|
Loading…
Reference in a new issue