From 87a8e7ad54a7aa7b82084dd0c12e8397880faaf1 Mon Sep 17 00:00:00 2001 From: mpl Date: Wed, 25 Apr 2018 23:18:16 -0700 Subject: [PATCH] website: fix test working dir Change-Id: If92dc43b4ee3e5fd2ac9c6490d242d3dacff74b1 --- website/pk-web/pkweb_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/pk-web/pkweb_test.go b/website/pk-web/pkweb_test.go index 5d6534ba4..3eac2a898 100644 --- a/website/pk-web/pkweb_test.go +++ b/website/pk-web/pkweb_test.go @@ -21,6 +21,7 @@ import ( "net/http/httptest" "net/url" "os" + "path/filepath" "strings" "testing" ) @@ -95,6 +96,7 @@ func TestDocHandler(t *testing.T) { if err != nil { t.Fatalf("Failed to getwd: %v", err) } + *root = filepath.Join(*root, "..") readTemplates() tests := []struct {