diff options
author | jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-06-10 17:22:01 +0000 |
---|---|---|
committer | jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-06-10 17:22:01 +0000 |
commit | 45a45f029a4307eeb62bb7f1dfe11fcd58003779 (patch) | |
tree | 40c95ee46c977b720e120e7fae4586429ebf03e2 /tko | |
parent | 4cd4e13b7b8c55cb0775ab7f0bb0d36a216edbc2 (diff) |
If a group doesn't define a subdir, and it executes "inner" tests that
do, apply that same subdir to the outer group instead of simply using
nothing.
Risk: Low
Visibility: Changes some subdir handling for groups.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@3241 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko')
-rw-r--r-- | tko/parsers/version_1.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tko/parsers/version_1.py b/tko/parsers/version_1.py index c78bab7f..fb82a99d 100644 --- a/tko/parsers/version_1.py +++ b/tko/parsers/version_1.py @@ -315,6 +315,8 @@ class parser(base.parser): subdir_stack.pop() else: line.subdir = subdir_stack.pop() + if not subdir_stack[-1] and stack.size() > min_stack_size: + subdir_stack[-1] = line.subdir # update the status, start and finished times stack.update(line.status) current_status = stack.end() |