Closed Bug 1153061 Opened 9 years ago Closed 9 years ago

[raptor] The script for manually posting to Influx DB cannot handle the last blank line

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mlien, Unassigned)

Details

After finished raptor testing, the raptor.log will leave one blank line on the end of file.
If using manually posting script to post to Influx DB, it will show below error:
======================================
undefined:0


SyntaxError: Unexpected end of input
    at parse (native)
    at Array.map (native)
    at /gaia/import.js:10:6
    at fs.js:334:14
    at FSReqWrap.oncomplete (fs.js:95:15)
======================================
If removing this blank line, it can execute normally. Maybe the script has bug to deal with blank line.
As this "script" isn't pure JSON, it doesn't make sense to a pure JSON.parse on it. It will be up to whomever is writing scripts to ensure the data is unserialized correctly.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.