aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/getpart.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/getpart.pm b/tests/getpart.pm
index 4d47736b6..83e56ca92 100644
--- a/tests/getpart.pm
+++ b/tests/getpart.pm
@@ -63,6 +63,10 @@ sub getpartattr {
}
last;
}
+ # detect end of section when part wasn't found
+ elsif((1 ==$inside) && ($_ =~ /^ *\<\/$section\>/)) {
+ last;
+ }
elsif((2 ==$inside) && ($_ =~ /^ *\<\/$part/)) {
$inside--;
}