website: fix test working dir

Change-Id: If92dc43b4ee3e5fd2ac9c6490d242d3dacff74b1
This commit is contained in:
mpl 2018-04-25 23:18:16 -07:00
parent a6ad4d88e9
commit 87a8e7ad54
1 changed files with 2 additions and 0 deletions

View File

@ -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 {