Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357693
b: refs/heads/master
c: 04262be
h: refs/heads/master
i:
  357691: 99a2205
v: v3
  • Loading branch information
Steven Rostedt (Red Hat) committed Jan 31, 2013
1 parent 28540a4 commit a13f280
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: 35275685bf6123529e67c1dc91b8c05e479124e8
refs/heads/master: 04262be3db53d2b77ec09fa3e4d18313b6b9dcf9
16 changes: 10 additions & 6 deletions trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ sub read_config {
}

sub __eval_option {
my ($option, $i) = @_;
my ($name, $option, $i) = @_;

# Add space to evaluate the character before $
$option = " $option";
Expand Down Expand Up @@ -1106,7 +1106,11 @@ sub __eval_option {
my $o = "$var\[$i\]";
my $parento = "$var\[$parent\]";

if (defined($opt{$o})) {
# If a variable contains itself, use the default var
if (($var eq $name) && defined($opt{$var})) {
$o = $opt{$var};
$retval = "$retval$o";
} elsif (defined($opt{$o})) {
$o = $opt{$o};
$retval = "$retval$o";
} elsif ($repeated && defined($opt{$parento})) {
Expand All @@ -1130,7 +1134,7 @@ sub __eval_option {
}

sub eval_option {
my ($option, $i) = @_;
my ($name, $option, $i) = @_;

my $prev = "";

Expand All @@ -1146,7 +1150,7 @@ sub eval_option {
"Check for recursive variables\n";
}
$prev = $option;
$option = __eval_option($option, $i);
$option = __eval_option($name, $option, $i);
}

return $option;
Expand Down Expand Up @@ -3683,7 +3687,7 @@ sub make_min_config {
read_config $ktest_config;

if (defined($opt{"LOG_FILE"})) {
$opt{"LOG_FILE"} = eval_option($opt{"LOG_FILE"}, -1);
$opt{"LOG_FILE"} = eval_option("LOG_FILE", $opt{"LOG_FILE"}, -1);
}

# Append any configs entered in manually to the config file.
Expand Down Expand Up @@ -3760,7 +3764,7 @@ sub set_test_option {
my $option = __set_test_option($name, $i);
return $option if (!defined($option));

return eval_option($option, $i);
return eval_option($name, $option, $i);
}

# First we need to do is the builds
Expand Down

0 comments on commit a13f280

Please sign in to comment.