Skip to content

Commit

Permalink
[bench] exit if results.ndjson is empty (#5107)
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Jan 23, 2025
1 parent f6d7e54 commit 92172de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions benchmark/sirun/strip-unwanted-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ const lines = fs
.trim()
.split('\n')

if (lines.length === 1 && lines[0] === '') {
console.log('The file "results.ndjson" is empty! Aborting...') // eslint-disable-line no-console
process.exit(1)
}

const results = []

for (const line of lines) {
Expand Down

0 comments on commit 92172de

Please sign in to comment.