build(docs-infra): do not error if suites are ignored (#43431)

Adding suites to the `IGNORED_EXAMPLES` array currently results
in an runtime exception because later when ignored examples are
printed to stdout, a non-existent variable is referenced back
from when there were examples disabled due to the Ivy migration.

This commit fixes the logic.

PR Close #43431
This commit is contained in:
Paul Gschwendtner 2021-09-29 23:45:16 +02:00 committed by Dylan Hunn
parent 46933d8c87
commit 72c12653e1

View file

@ -311,11 +311,10 @@ function runE2eTestsCLI(appDir, outputFile, bufferOutput, port) {
function reportStatus(status, outputFile) {
let log = [''];
log.push('Suites ignored due to legacy guides:');
IGNORED_EXAMPLES.filter(example => !fixmeIvyExamples.find(ex => ex.startsWith(example)))
.forEach(function(val) {
log.push(' ' + val);
});
log.push('Suites ignored:');
IGNORED_EXAMPLES.forEach(function(val) {
log.push(' ' + val);
});
log.push('');
log.push('Suites passed:');