Skip to content

Commit 716c22e

Browse files
committed
adjust status check
1 parent 3a808a8 commit 716c22e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ci/fd-conformance.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ await $`source test_suite_env/bin/activate && \
7777
-i ${fixturesPath} -s ${testTargetPathBuiltin} -t ${testTargetPathCoreBpf}`;
7878

7979
// Assert conformance.
80-
// There should be no `failed_protobufs` directory.
81-
if (fs.existsSync('test_results/failed_protobufs')) {
80+
// There should be no fixtures in the `failed_protobufs` directory.
81+
if (fs.readdirSync('test_results/failed_protobufs').length > 0) {
8282
throw new Error(`Error: mismatches detected.`);
8383
} else {
8484
console.log('All tests passed.');

0 commit comments

Comments
 (0)