From f0f8fb6e5f97bb1a5d9f5ee98610e71eb960fa91 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Wed, 7 Feb 2018 12:57:11 -0500 Subject: [PATCH] SQL: Fix doc pointer to SQL's tests The docs include portions of the SQL tests and for that to work they need to point to position of the tests. They use a relative directory but relative to *what*? That turns out to be a fairly complex thing to answer, luckilly, `index.x.asciidoc` defines `xes-repo-dir` which points to the root of the xpack docs. We can use that to find the sql tests without having to answer the "relative to what?" question in two places. Original commit: elastic/x-pack-elasticsearch@ebea586fdf7bed7663c27193e3a304ab768598c8 --- docs/en/sql/index.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/sql/index.asciidoc b/docs/en/sql/index.asciidoc index 111a68564b1..d2f9bba0993 100644 --- a/docs/en/sql/index.asciidoc +++ b/docs/en/sql/index.asciidoc @@ -2,7 +2,7 @@ [[xpack-sql]] = SQL Access -:sql-tests: {docdir}/../../qa/sql +:sql-tests: {xes-repo-dir}/../../qa/sql :sql-specs: {sql-tests}/src/main/resources :jdbc-tests: {sql-tests}/src/main/java/org/elasticsearch/xpack/qa/sql/jdbc :security-tests: {sql-tests}/security/src/test/java/org/elasticsearch/xpack/qa/sql/security