diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2011-11-21 20:12:04 -0500 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2011-11-21 20:12:04 -0500 |
| commit | 600bbf0aa2229390ba1c4ca4c5666c593ff9ef56 (patch) | |
| tree | e15fbf29a5b1b3f04df9bf7cce6bdf39deec5f87 /tools/testing/ktest | |
| parent | de5b6e3bf5e71532057fb4f1eb8ee29c5c7f11db (diff) | |
ktest: Add default for ssh-user, build-target and target-image
When a user runs ktest without an argument, or the argument given
is not a config file that exists, ktest will ask the user a few
questions to create a simple ktest config file.
A few of the questions should have a default value set, that if anything
it will make it easier for the user to know what is suppose to
be in that value.
These new values are:
SSH_USER, BUILD_TARGET and TARGET_IMAGE
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest')
| -rwxr-xr-x | tools/testing/ktest/ktest.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 6ef104e87ab0..05f429d68857 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl | |||
| @@ -22,7 +22,6 @@ my %default; | |||
| 22 | 22 | ||
| 23 | #default opts | 23 | #default opts |
| 24 | $default{"NUM_TESTS"} = 1; | 24 | $default{"NUM_TESTS"} = 1; |
| 25 | $default{"REBOOT_TYPE"} = "grub"; | ||
| 26 | $default{"TEST_TYPE"} = "test"; | 25 | $default{"TEST_TYPE"} = "test"; |
| 27 | $default{"BUILD_TYPE"} = "randconfig"; | 26 | $default{"BUILD_TYPE"} = "randconfig"; |
| 28 | $default{"MAKE_CMD"} = "make"; | 27 | $default{"MAKE_CMD"} = "make"; |
| @@ -51,7 +50,14 @@ $default{"REBOOT"} = "ssh \$SSH_USER\@\$MACHINE reboot"; | |||
| 51 | $default{"STOP_AFTER_SUCCESS"} = 10; | 50 | $default{"STOP_AFTER_SUCCESS"} = 10; |
| 52 | $default{"STOP_AFTER_FAILURE"} = 60; | 51 | $default{"STOP_AFTER_FAILURE"} = 60; |
| 53 | $default{"STOP_TEST_AFTER"} = 600; | 52 | $default{"STOP_TEST_AFTER"} = 600; |
| 53 | |||
| 54 | # required, and we will ask users if they don't have them but we keep the default | ||
| 55 | # value something that is common. | ||
| 56 | $default{"REBOOT_TYPE"} = "grub"; | ||
| 54 | $default{"LOCALVERSION"} = "-test"; | 57 | $default{"LOCALVERSION"} = "-test"; |
| 58 | $default{"SSH_USER"} = "root"; | ||
| 59 | $default{"BUILD_TARGET"} = "arch/x86/boot/bzImage"; | ||
| 60 | $default{"TARGET_IMAGE"} = "/boot/vmlinuz-test"; | ||
| 55 | 61 | ||
| 56 | my $ktest_config; | 62 | my $ktest_config; |
| 57 | my $version; | 63 | my $version; |
