Skip to content

Commit

Permalink
Merge branch 'fix-import-tests-new-build' of https://github.com/w3c/a…
Browse files Browse the repository at this point in the history
…ria-at-app into fix-import-tests-new-build
  • Loading branch information
alflennik committed Aug 12, 2021
2 parents 537dd5d + 5d026fe commit 93a86da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/scripts/import-tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ const ariaAtImport = {
const stat = fse.statSync(testPlanDirPath); // folder stats

// <repo>.git/tests/resources folder shouldn't be factored in the tests
if (stat.isDirectory() && testPlanDir !== 'resources') {
if (
fse.existsSync(sourceTestPlanDirPath) && // explicitly check if source test plan directory exists
stat.isDirectory() &&
testPlanDir !== 'resources'
) {
// check multiple locations for relevant data folder that contains references.csv
const dataPath = path.join(
buildDirExists ? sourceTestPlanDirPath : testPlanDirPath,
Expand Down

0 comments on commit 93a86da

Please sign in to comment.