Skip to content

Commit ab046e5

Browse files
committed
MOBILE-4842 behat: Include public on guess plugin path
1 parent 2b42489 commit ab046e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/build-behat-plugin.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ function guessPluginPath() {
154154
}
155155

156156
if (process.env.MOODLE_DOCKER_WWWROOT) {
157-
return `${process.env.MOODLE_DOCKER_WWWROOT}/local/moodleappbehat`;
157+
if (existsSync(`${process.env.MOODLE_DOCKER_WWWROOT}/public`)) {
158+
return `${process.env.MOODLE_DOCKER_WWWROOT}/public/local/moodleappbehat`;
159+
} else {
160+
return `${process.env.MOODLE_DOCKER_WWWROOT}/local/moodleappbehat`;
161+
}
158162
}
159163

160164
return null;

0 commit comments

Comments
 (0)