Added test of build step running.

This commit is contained in:
Jonathan Bernard
2017-06-14 01:06:43 -05:00
parent 3d8454d486
commit 1299311a4c
4 changed files with 35 additions and 14 deletions

View File

@ -1,4 +1,4 @@
import logging, nre, os, osproc, sequtils, streams, strtabs, strutils, tables
import logging, nre, os, osproc, sequtils, streams, strtabs, strutils, tables, uuids
import private/util
import configuration

View File

@ -77,7 +77,7 @@ proc spawnWorker(cfg: StrawBossConfig, req: RunRequest): Worker =
let dir = mkdtemp()
var args = @["run", req.projectName, req.stepName, "-r", req.buildRef,
"-w", dir, "-c", cfg.filePath, "-i", req.id]
"-w", dir, "-c", cfg.filePath, "-i", $req.id]
if req.forceRebuild: args.add("-f")
debug "Launching worker: " & cfg.pathToExe & " " & args.join(" ")
result = Worker(