tests/boot-sector: Increase time-out to 90 seconds
Since the PXE tester runs rather slow on ppc64 with tcg, there is a chance that we hit the 60 seconds timeout on machines that have a heavy CPU load. So let's increase the timeout to ease the situation. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
3e35377372
commit
74cba2b3b2
|
@ -106,9 +106,9 @@ void boot_sector_test(void)
|
||||||
uint16_t signature;
|
uint16_t signature;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Wait at most 1 minute */
|
/* Wait at most 90 seconds */
|
||||||
#define TEST_DELAY (1 * G_USEC_PER_SEC / 10)
|
#define TEST_DELAY (1 * G_USEC_PER_SEC / 10)
|
||||||
#define TEST_CYCLES MAX((60 * G_USEC_PER_SEC / TEST_DELAY), 1)
|
#define TEST_CYCLES MAX((90 * G_USEC_PER_SEC / TEST_DELAY), 1)
|
||||||
|
|
||||||
/* Poll until code has run and modified memory. Once it has we know BIOS
|
/* Poll until code has run and modified memory. Once it has we know BIOS
|
||||||
* initialization is done. TODO: check that IP reached the halt
|
* initialization is done. TODO: check that IP reached the halt
|
||||||
|
|
Loading…
Reference in New Issue