mirror of
https://github.com/apache/impala.git
synced 2026-01-10 09:00:16 -05:00
Many python files had a hashbang and the executable bit set though they were not intended to be run a standalone script. That makes determining which python files are actually scripts very difficult. A future patch will update the hashbang in real python scripts so they use $IMPALA_HOME/bin/impala-python. Change-Id: I04eafdc73201feefe65b85817a00474e182ec2ba Reviewed-on: http://gerrit.cloudera.org:8080/599 Reviewed-by: Casey Ching <casey@cloudera.com> Reviewed-by: Taras Bobrovytsky <tbobrovytsky@cloudera.com> Tested-by: Internal Jenkins
25 lines
712 B
Python
25 lines
712 B
Python
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
|
|
#
|
|
# The base class that should be used for tests.
|
|
import logging
|
|
import os
|
|
import pytest
|
|
from tests.common.test_dimensions import *
|
|
from tests.common.test_result_verifier import *
|
|
from tests.common.test_vector import *
|
|
LOG = logging.getLogger('base_test_suite')
|
|
|
|
# Base class for tests.
|
|
class BaseTestSuite(object):
|
|
TestMatrix = TestMatrix()
|
|
|
|
@classmethod
|
|
def add_test_dimensions(cls):
|
|
"""
|
|
A hook for adding additional dimensions.
|
|
|
|
By default load the table_info and exec_option dimensions, but if a test wants to
|
|
add more dimensions or different dimensions they can override this function.
|
|
"""
|
|
cls.TestMatrix = TestMatrix()
|