]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/pack: another attempt to fix the build for TestHello
authorRob Pike <r@golang.org>
Thu, 20 Feb 2014 00:12:05 +0000 (16:12 -0800)
committerRob Pike <r@golang.org>
Thu, 20 Feb 2014 00:12:05 +0000 (16:12 -0800)
Plan 9 uses single quotes, not double quotes. I should have known.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/66240043

src/cmd/pack/pack_test.go

index cab236fa8884ed6ea3a8128919d972d7afc8c0a1..dc42b707accc87ecb41fbfdf5a8e8d7221811e60 100644 (file)
@@ -193,7 +193,7 @@ func TestHello(t *testing.T) {
        }
 
        out := run("go", "env")
-       re, err := regexp.Compile(`\s*GOCHAR="?(\w)"?`)
+       re, err := regexp.Compile(`\s*GOCHAR=['"]?(\w)['"]?`)
        if err != nil {
                t.Fatal(err)
        }