summaryrefslogtreecommitdiff
path: root/lib/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sbin')
-rw-r--r--lib/sbin/RunTestUtils.pl11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/sbin/RunTestUtils.pl b/lib/sbin/RunTestUtils.pl
index 92c37d99..b85e83f4 100644
--- a/lib/sbin/RunTestUtils.pl
+++ b/lib/sbin/RunTestUtils.pl
@@ -1107,10 +1107,15 @@ sub CompareTestFiles
while ($oline = <INORIG>)
{
- $nline = <INNEW>;
+ # ignore comment lines in old file
+ next if ($oline =~ /^\s*["\#]/);
- # ignore comment lines
- next if (($oline =~ /^\s*["\#]/) && ($nline =~ /^\s*["\#]/));
+ # ignore comment lines in new file
+ do
+ {
+ $nline = <INNEW>;
+ }
+ while ($nline =~ /^\s*["\#]/);
# Now lets see if they differ.
$numlines++;