Commit b820ec6
committed
fix(test): retry reading pid file a few times
Sometimes, tests intermittently fail with
FileNotFoundError: [Errno 2] No such file or directory:
'/[snip]/root/firecracker.pid'
or
ValueError: invalid literal for int() with base 10: ''
framework/microvm.py:485: in firecracker_pid
return int(self.jailer.pid_file.read_text(encoding="ascii"))
It seems this is because we check the pid file too early (especially
when creating the memory monitor), so give it a few retries.
Signed-off-by: Patrick Roy <[email protected]>1 parent ba13237 commit b820ec6
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
485 | | - | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
486 | 494 | | |
487 | 495 | | |
488 | 496 | | |
| |||
0 commit comments