This commit is contained in:
sridharv
2016-03-28 17:23:28 +02:00
parent 94abcd0da0
commit 7a0cf30d95
2 changed files with 14 additions and 14 deletions

View File

@ -3,11 +3,11 @@ package main
import (
"testing"
"io/ioutil"
"path/filepath"
"os/exec"
"os"
"flag"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
)
var javaTest = flag.String("javatest", ".*", "Run only java tests matching the regular expression")
@ -36,7 +36,7 @@ func TestJavaBind(t *testing.T) {
if err := runCommand("javac", "-cp", jar, "-d", tmpDir, toCopy[0].dst, toCopy[1].dst); err != nil {
t.Fatal(err)
}
cmd := exec.Command("java", "-cp", jar + ":" + tmpDir, "go.MoreAsserts", *javaTest)
cmd := exec.Command("java", "-cp", jar+":"+tmpDir, "go.MoreAsserts", *javaTest)
cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout
if err := cmd.Run(); err != nil {