Make gentest-validate more graceful of different file organization (#1672)

Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1672

This reworks `gentest-validate`, to be more resilient to changes like D58307002, which cause [validation failures](https://github.com/facebook/yoga/actions/runs/9653979292/job/26627690870) on the intrinsic sizing testing change, which currently causes failure due to the file traversal code not handling the presence of directories.

Differential Revision: D58987293
This commit is contained in:
Nick Gerleman
2024-06-24 21:47:01 -07:00
committed by Facebook GitHub Bot
parent db383714d3
commit f023702f75
7 changed files with 120 additions and 60 deletions

View File

@@ -23,7 +23,7 @@ const {
const {existsSync} = require('fs');
const {readFile, writeFile, rm} = require('fs/promises');
const glob = require('glob');
const {glob} = require('glob');
const path = require('path');
const which = require('which');