Skip to content

Commit

Permalink
cmd/run: Early creation of the results directory
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <a.jung@lancs.ac.uk>
  • Loading branch information
nderjung committed Jan 7, 2021
1 parent 3685a4b commit 839d5e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ func doRunCmd(cmd *cobra.Command, args []string) {
os.MkdirAll(cacheDir, os.ModePerm)
}

// Create the results dir
rersultsDir := path.Join(runConfig.WorkDir, "results")
if _, err := os.Stat(rersultsDir); os.IsNotExist(err) {
os.MkdirAll(rersultsDir, os.ModePerm)
}

activeJob, err := job.NewJob(args[0], &job.RuntimeConfig{
Cpus: cpus,
BridgeName: runConfig.BridgeName,
Expand Down

0 comments on commit 839d5e8

Please sign in to comment.