From 950767e8c38c320c5e35c77a0553088324cf786d Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 28 Feb 2019 22:07:03 +0000 Subject: blog: fix test on android, add copyright header Change-Id: I193531fe0e8f177d3b55fc1ef0840299f973c482 Reviewed-on: https://go-review.googlesource.com/c/164678 Reviewed-by: Elias Naur --- local_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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", }) -- cgit v1.2.3