Browse Source

Update the crashTest to have the dockerpath in env

Guillaume J. Charmes 12 years ago
parent
commit
ebe157ebb5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      contrib/crashTest.go

+ 2 - 1
contrib/crashTest.go

@@ -5,10 +5,11 @@ import (
 	"log"
 	"log"
 	"os"
 	"os"
 	"os/exec"
 	"os/exec"
+	"path"
 	"time"
 	"time"
 )
 )
 
 
-const DOCKER_PATH = "/home/creack/dotcloud/docker/docker/docker"
+var DOCKER_PATH string = path.Join(os.Getenv("DOCKERPATH"), "docker")
 
 
 func runDaemon() (*exec.Cmd, error) {
 func runDaemon() (*exec.Cmd, error) {
 	os.Remove("/var/run/docker.pid")
 	os.Remove("/var/run/docker.pid")