IMPALA-3004: Fix QueryTest tests

Test files in testdata/workloads/functional-query/queries/QueryTest
are parsed by test_file_parser.py, which used to ignore everything
before the first ==== line as a file header. This change fixes all
affected files.

This change also modifies the test file parser to forbid headers
starting with what looks like a subsection title ('----'), which
should prevent the reintroduction of similar errors in the future.

Change-Id: Iaa1bc5ffd02782e24289c7843dcb35401c334519
Reviewed-on: http://gerrit.cloudera.org:8080/2220
Reviewed-by: Lars Volker <lv@cloudera.com>
Tested-by: Internal Jenkins
This commit is contained in:
Lars Volker
2016-02-16 11:59:39 -08:00
committed by Harrison Sheinblatt
parent 0589b86481
commit 6b566a2d35
6 changed files with 58 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---- QUERY
SELECT count(*) FROM functional.alltypes;
---- RESULT
0
====