add support for passing additional environment parameters to command runner

includes an example of passing environment variables to chktex
This commit is contained in:
Brian Gough
2016-07-26 12:30:29 +01:00
parent a7c7f2697f
commit 6524439699
5 changed files with 25 additions and 8 deletions

View File

@@ -47,6 +47,7 @@ describe "CompileManager", ->
compiler: @compiler = "pdflatex"
timeout: @timeout = 42000
imageName: @image = "example.com/image"
@env = {}
@Settings.compileDir = "compiles"
@compileDir = "#{@Settings.path.compilesDir}/#{@project_id}-#{@user_id}"
@ResourceWriter.syncResourcesToDisk = sinon.stub().callsArg(3)
@@ -72,6 +73,7 @@ describe "CompileManager", ->
compiler: @compiler
timeout: @timeout
image: @image
environment: @env
})
.should.equal true