aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-09-17 19:12:10 +0200
committerDr. David Alan Gilbert <dgilbert@redhat.com>2018-09-26 17:29:01 +0100
commitfc71e3e562b796c54a78d13485d93259a7473241 (patch)
tree507d3a11f8dcf3dbb81ee7f08d62b2ffe2624eb7 /tests
parent096c83b7219c5a2145435afc8be750281e9cb447 (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"). Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1537204330-16076-1-git-send-email-thuth@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/migration-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/migration-test.c b/tests/migration-test.c
index 17c689601f..20f38f1930 100644
--- a/tests/migration-test.c
+++ b/tests/migration-test.c
@@ -443,11 +443,11 @@ static int test_migrate_start(QTestState **from, QTestState **to,
start_address = X86_TEST_MEM_START;
end_address = X86_TEST_MEM_END;
} 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);