helpers: Add --trace to asciidoctor args

This will help to understand and fix errors by
seeing stacktrace of an error.

See #3714
This commit is contained in:
Vasyl Solovei
2017-07-21 12:07:56 +03:00
committed by Anthony Fok
parent ff433f9813
commit b60aa1a504
3 changed files with 35 additions and 13 deletions

View File

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