Closed
Bug 1395588
Opened 8 years ago
Closed 8 years ago
comment lines from *.txt are mixed in the output of ssl.sh
Categories
(NSS :: Test, defect)
NSS
Test
Tracking
(Not tracked)
RESOLVED
FIXED
3.33
People
(Reporter: ueno, Assigned: ueno)
Details
Attachments
(1 file, 1 obsolete file)
4.34 KB,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
From the build log:
ssl.sh: skipping Form is subject to the terms of the Mozilla Public (non-FIPS only)
ssl.sh: skipping If a copy of the MPL was not distributed with this (non-FIPS only)
ssl.sh: skipping obtain one at http://mozilla.org/MPL/2.0/. (non-FIPS only)
ssl.sh: skipping (non-FIPS only)
ssl.sh: skipping the stress tests for SSL/TLS. (non-FIPS only)
ssl.sh: skipping (non-FIPS only)
ssl.sh: skipping (non-FIPS only)
ssl.sh: skipping client Test Case name (non-FIPS only)
ssl.sh: skipping params (non-FIPS only)
ssl.sh: skipping ------ --------------- (non-FIPS only)
The words mixed in the output are from the comment lines in the test data:
https://hg.mozilla.org/projects/nss/file/tip/tests/ssl/sslstress.txt#l1
The attached patch skips the comment lines before processing to avoid this.
Attachment #8903165 -
Flags: review?(kaie)
Comment 1•8 years ago
|
||
I suggest instead of
grep -v '^$'
to use
grep -v '^ *$'
to filter out lines that aren't completely empty, but contain spaces, only.
Do you agree?
If you wanted to be more complete, you could use the [:space:] class offered by grep, to match tab characters, too. But I searched the ssl/*.txt files, and there aren't any tab characters in those files (except in comment lines that start with # as the first character), so we may decide that using [:space:] is unnecessary.
Everything else looks good, r=kaie
Comment 2•8 years ago
|
||
(In reply to Kai Engert (:kaie:) from comment #1)
> I suggest instead of
> grep -v '^$'
> to use
> grep -v '^ *$'
> to filter out lines that aren't completely empty, but contain spaces, only.
>
> Do you agree?
Flags: needinfo?(nobody)
Assignee | ||
Comment 3•8 years ago
|
||
Yes, I agree. The attached patch addresses those issues.
Attachment #8903165 -
Attachment is obsolete: true
Attachment #8903165 -
Flags: review?(kaie)
Flags: needinfo?(nobody)
Attachment #8904606 -
Flags: review?(kaie)
Comment 4•8 years ago
|
||
Comment on attachment 8904606 [details] [diff] [review]
skip-comments-v2.patch
great, thanks a lot
r=kaie
Attachment #8904606 -
Flags: review?(kaie) → review+
Comment 5•8 years ago
|
||
Assignee: nobody → dueno
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.33
You need to log in
before you can comment on or make changes to this bug.
Description
•