diff options
author | Vasyl Solovei <iam@miltador.pro> | 2017-07-21 12:07:56 +0300 |
---|---|---|
committer | Anthony Fok <foka@debian.org> | 2017-07-21 03:07:56 -0600 |
commit | b60aa1a504f3fbf9c19a6bf2030fdc7a04ab4a5a (patch) | |
tree | 4fa620cbf71488b8bcfc4a52b86221164a0a986b /hugolib | |
parent | ff433f98133662063cbb16e220fd44c678c82823 (diff) |
helpers: Add --trace to asciidoctor args
This will help to understand and fix errors by
seeing stacktrace of an error.
See #3714
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/page_test.go | 2 | ||||
-rw-r--r-- | hugolib/shortcode_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go index 88724cd1c..5c5c06b07 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go @@ -561,7 +561,7 @@ func testAllMarkdownEnginesForPages(t *testing.T, }{ {"md", func() bool { return true }}, {"mmark", func() bool { return true }}, - {"ad", func() bool { return helpers.HasAsciidoc() }}, + {"ad", func() bool { return helpers.HasAsciidoctor() || helpers.HasAsciidoc() }}, // TODO(bep) figure a way to include this without too much work.{"html", func() bool { return true }}, {"rst", func() bool { return helpers.HasRst() }}, } diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 3d355f947..485ae4b69 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -555,7 +555,7 @@ tags: th := testHelper{s.Cfg, s.Fs, t} for _, test := range tests { - if strings.HasSuffix(test.contentPath, ".ad") && !helpers.HasAsciidoc() { + if strings.HasSuffix(test.contentPath, ".ad") && !helpers.HasAsciidoctor() && !helpers.HasAsciidoc() { fmt.Println("Skip Asciidoc test case as no Asciidoc present.") continue } else if strings.HasSuffix(test.contentPath, ".rst") && !helpers.HasRst() { |