aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/sample.conf
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-12-22 16:29:10 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-12-22 21:59:41 -0500
commitbc7c580377195f9f4da31b63fbbf52293cb4c861 (patch)
tree561f1038c2546cba3861713fdbf7b0996d989f8d /tools/testing/ktest/sample.conf
parentc5dacb88f0a6410b3270f77e3d1e1b159afc4adc (diff)
ktest: Add options SWITCH_TO_GOOD and SWITCH_TO_TEST
For machines that do no use grub, it may be needed to update an external image (tftp) before doing a reboot into either the test image or the known good image. The option SWITCH_TO_GOOD is added, where if it is defined, the command that is specified as its value will be executed before doing a reboot into a known good image. The option SWITCH_TO_TEST is added, where if it is defined, the command that is specified as its value will be executed before doing a reboot into the test image. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/sample.conf')
-rw-r--r--tools/testing/ktest/sample.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf
index 2ff0f8c483e9..c8dc7575c2f5 100644
--- a/tools/testing/ktest/sample.conf
+++ b/tools/testing/ktest/sample.conf
@@ -468,6 +468,27 @@
468# The test will not modify that file. 468# The test will not modify that file.
469#REBOOT_TYPE = grub 469#REBOOT_TYPE = grub
470 470
471# If you are using a machine that doesn't boot with grub, and
472# perhaps gets its kernel from a remote server (tftp), then
473# you can use this option to update the target image with the
474# test image.
475#
476# You could also do the same with POST_INSTALL, but the difference
477# between that option and this option is that POST_INSTALL runs
478# after the install, where this one runs just before a reboot.
479# (default undefined)
480#SWITCH_TO_TEST = cp ${OUTPUT_DIR}/${BUILD_TARGET} ${TARGET_IMAGE}
481
482# If you are using a machine that doesn't boot with grub, and
483# perhaps gets its kernel from a remote server (tftp), then
484# you can use this option to update the target image with the
485# the known good image to reboot safely back into.
486#
487# This option holds a command that will execute before needing
488# to reboot to a good known image.
489# (default undefined)
490#SWITCH_TO_GOOD = ssh ${SSH_USER}/${MACHINE} cp good_image ${TARGET_IMAGE}
491
471# The min config that is needed to build for the machine 492# The min config that is needed to build for the machine
472# A nice way to create this is with the following: 493# A nice way to create this is with the following:
473# 494#