Skip to content

Commit ecee7c8

Browse files
committed
Copy error logs to the out directory
1 parent 7ea8de0 commit ecee7c8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ update_interop_year() {
4343
node interop-scoring/main.js --year=${YEAR} --to=${TO_DATE}
4444
node interop-scoring/main.js --year=${YEAR} --to=${TO_DATE} --experimental
4545

46-
mv interop-${YEAR}-*.csv out/data/interop-${YEAR}/
46+
mv interop-${YEAR}-*.csv interop-${YEAR}-errors-*.txt out/data/interop-${YEAR}/
4747
}
4848

4949
update_interop_year 2021

interop-scoring/main.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ async function main() {
312312
// Write non-OK harness statuses to a file.
313313
const lines = Array.from(nonOKTests).sort();
314314
lines.push('');
315-
await fs.promises.writeFile('non-ok-harness-statuses.txt', lines.join('\n'), 'utf-8');
315+
const errorsFilename = experimental ?
316+
`interop-${year}-errors-experimental.txt` : `interop-${year}-errors-stable.txt`;
317+
await fs.promises.writeFile(errorsFilename, lines.join('\n'), 'utf-8');
316318

317319
// TODO: Once the other score CSVs are no longer used, we can push
318320
// some of this logic into scoreAlignedRuns and simplify things.

0 commit comments

Comments
 (0)