Skip to content

Commit 402d3c2

Browse files
committed
Add pathtogs for behat runs
1 parent c8c96b9 commit 402d3c2

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

mdk/config-dist.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@
201201
"shifter": "/usr/bin/shifter",
202202
// Path to yuidoc
203203
"yuidoc": "/usr/local/bin/yuidoc",
204+
// Path to ghostscript
205+
"gs": "",
204206
// Path to your favourite editor. Set to null to guess it from the System environment.
205207
"editor": null,
206208

mdk/moodle.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ def initBehat(self, switchcompletely=False, force=False, prefix=None, faildumppa
338338
elif currentWwwroot != wwwroot:
339339
logging.warning('Behat wwwroot not changed, already set to \'%s\', expected \'%s\'.' % (currentWwwroot, wwwroot))
340340

341+
# Set the pathtogs as this is required by some tests.
342+
self.updateConfig('pathtogs', C.getExecutable('gs'))
343+
341344
# Force a cache purge
342345
self.purge()
343346

0 commit comments

Comments
 (0)