diff options
author | Thomas Huth <thuth@redhat.com> | 2018-09-17 16:24:55 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2018-09-25 17:26:18 +0200 |
commit | 2fc3ee6e3fadf1d578de7effb13d4200cc2b13a7 (patch) | |
tree | 477dc24648ecf35f7d1b37228e95219922ab14d5 /tests | |
parent | 6038f98904942a84d4a9cb03a2d84a5c1948343b (diff) |
tests/migration: Speed up the test on ppc64
The SLOF boot process is always quite slow ... but we can speed it up
a little bit by specifying "-nodefaults" and by using the "nvramrc"
variable instead of "boot-command" (since "nvramrc" is evaluated earlier
in the SLOF boot process than "boot-command").
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/migration-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/migration-test.c b/tests/migration-test.c index 0e687b7512..967e3d0856 100644 --- a/tests/migration-test.c +++ b/tests/migration-test.c @@ -438,11 +438,11 @@ static int test_migrate_start(QTestState **from, QTestState **to, " -incoming %s", accel, tmpfs, bootpath, uri); } else if (strcmp(arch, "ppc64") == 0) { - cmd_src = g_strdup_printf("-machine accel=%s -m 256M" + cmd_src = g_strdup_printf("-machine accel=%s -m 256M -nodefaults" " -name source,debug-threads=on" " -serial file:%s/src_serial" - " -prom-env '" - "boot-command=hex .\" _\" begin %x %x " + " -prom-env 'use-nvramrc?=true' -prom-env " + "'nvramrc=hex .\" _\" begin %x %x " "do i c@ 1 + i c! 1000 +loop .\" B\" 0 " "until'", accel, tmpfs, end_address, start_address); |