diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2019-02-28 22:07:03 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-02-28 22:36:30 +0000 |
commit | 950767e8c38c320c5e35c77a0553088324cf786d (patch) | |
tree | ce0fd20a46988707dc36369b47dff3da4d2b400a | |
parent | 1014ebc2bd8b24516c1692bc1f102f90a1f3ad66 (diff) |
blog: fix test on android, add copyright header
Change-Id: I193531fe0e8f177d3b55fc1ef0840299f973c482
Reviewed-on: https://go-review.googlesource.com/c/164678
Reviewed-by: Elias Naur <mail@eliasnaur.com>
-rw-r--r-- | local_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/local_test.go b/local_test.go index 3b8de62..a848b27 100644 --- a/local_test.go +++ b/local_test.go @@ -1,9 +1,14 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // +build !appengine package main import ( "net/http/httptest" + "runtime" "strings" "testing" @@ -11,6 +16,9 @@ import ( ) func TestServer(t *testing.T) { + if runtime.GOOS == "android" { + t.Skip("skipping on android; can't run go tool") + } mux, err := newServer(false, "/static", blog.Config{ TemplatePath: "./template", }) |