Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275183
b: refs/heads/master
c: 815e2bd
h: refs/heads/master
i:
  275181: c2519be
  275179: 23fba18
  275175: 1314e4a
  275167: 4baf1ed
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Oct 28, 2011
1 parent 5d4a4b6 commit 8d26c3f
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 7bf5107347d94bb056c5a0cf78f09e499c3d8f48
refs/heads/master: 815e2bd7d609da9c7615ea28a3990064a394312f
10 changes: 6 additions & 4 deletions trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ sub read_yn {

sub get_ktest_config {
my ($config) = @_;
my $ans;

return if (defined($opt{$config}));

Expand All @@ -263,16 +264,17 @@ sub get_ktest_config {
if (defined($default{$config})) {
print "\[$default{$config}\] ";
}
$entered_configs{$config} = <STDIN>;
$entered_configs{$config} =~ s/^\s*(.*\S)\s*$/$1/;
if ($entered_configs{$config} =~ /^\s*$/) {
$ans = <STDIN>;
$ans =~ s/^\s*(.*\S)\s*$/$1/;
if ($ans =~ /^\s*$/) {
if ($default{$config}) {
$entered_configs{$config} = $default{$config};
$ans = $default{$config};
} else {
print "Your answer can not be blank\n";
next;
}
}
$entered_configs{$config} = process_variables($ans);
last;
}
}
Expand Down

0 comments on commit 8d26c3f

Please sign in to comment.