Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285889
b: refs/heads/master
c: c4261d0
h: refs/heads/master
i:
  285887: 37133bb
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Dec 23, 2011
1 parent d4dfb90 commit 0e147b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dad98754924735d4dfcbd49b68c00957e999c0ef
refs/heads/master: c4261d0f62ccbb42184d13b43807b36b100e8fb5
16 changes: 12 additions & 4 deletions trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,15 @@ sub __read_config {
return $test_case;
}

sub get_test_case {
print "What test case would you like to run?\n";
print " (build, install or boot)\n";
print " Other tests are available but require editing the config file\n";
my $ans = <STDIN>;
chomp $ans;
$default{"TEST_TYPE"} = $ans;
}

sub read_config {
my ($config) = @_;

Expand All @@ -766,10 +775,7 @@ sub read_config {
# was a test specified?
if (!$test_case) {
print "No test case specified.\n";
print "What test case would you like to run?\n";
my $ans = <STDIN>;
chomp $ans;
$default{"TEST_TYPE"} = $ans;
get_test_case;
}

# set any defaults
Expand Down Expand Up @@ -3070,6 +3076,7 @@ sub make_min_config {
}

if (! -f $ktest_config) {
get_test_case;
open(OUT, ">$ktest_config") or die "Can not create $ktest_config";
print OUT << "EOF"
# Generated by ktest.pl
Expand All @@ -3088,6 +3095,7 @@ sub make_min_config {
# Define each test with TEST_START
# The config options below it will override the defaults
TEST_START
TEST_TYPE = $default{"TEST_TYPE"}
DEFAULTS
EOF
Expand Down

0 comments on commit 0e147b9

Please sign in to comment.