diff --git a/.travis.yml b/.travis.yml index 7df3a7d7fe..37e6e5a6c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,15 +32,15 @@ matrix: - cd debug script: - - cmake .. - - make + - cmake .. > /dev/null + - make > /dev/null after_success: - |- case $TRAVIS_OS_NAME in linux) cd ${TRAVIS_BUILD_DIR}/debug - make install || travis_terminate $? + make install > /dev/null || travis_terminate $? pip install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python2/ pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/ @@ -98,11 +98,11 @@ matrix: # Commands to prepare for build_command # ** likely specific to your build ** - build_command_prepend: cmake . + build_command_prepend: cmake . > /dev/null # The command that will be added as an argument to "cov-build" to compile your project for analysis, # ** likely specific to your build ** - build_command: make + build_command: make > /dev/null # Pattern to match selecting branches that will run analysis. We recommend leaving this set to 'coverity_scan'. # Take care in resource usage, and consider the build frequency allowances per @@ -135,15 +135,15 @@ matrix: - cd debug script: - - cmake -DCOVER=true .. - - make + - cmake -DCOVER=true .. > /dev/null + - make > /dev/null after_success: - |- case $TRAVIS_OS_NAME in linux) cd ${TRAVIS_BUILD_DIR}/debug - make install || travis_terminate $? + make install > /dev/null || travis_terminate $? pip install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python2/ pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/ @@ -208,8 +208,8 @@ matrix: - cd debug script: - - cmake .. - - make + - cmake .. > /dev/null + - make > /dev/null # - os: osx # language: c @@ -225,5 +225,5 @@ matrix: # - cd ${TRAVIS_BUILD_DIR} # - mkdir debug # - cd debug - # - cmake .. - # - make + # - cmake .. > /dev/null + # - make > /dev/null diff --git a/tests/pytest/smoketest.sh b/tests/pytest/smoketest.sh index 71d19df5c0..af597fb6c5 100755 --- a/tests/pytest/smoketest.sh +++ b/tests/pytest/smoketest.sh @@ -23,6 +23,17 @@ sleep 1 python3 ./test.py $1 -f insert/tinyint.py python3 ./test.py -s $1 sleep 1 + +python3 ./test.py $1 -f table/column_name.py +python3 ./test.py -s $1 +sleep 1 +python3 ./test.py $1 -f table/column_num.py +python3 ./test.py -s $1 +sleep 1 +python3 ./test.py $1 -f table/db_table.py +python3 ./test.py -s $1 +sleep 1 + python3 ./test.py $1 -f import_merge/importDataLastTO.py python3 ./test.py -s $1 sleep 1 diff --git a/tests/pytest/util/log.py b/tests/pytest/util/log.py index 97c8b2ef7f..bcd840999d 100644 --- a/tests/pytest/util/log.py +++ b/tests/pytest/util/log.py @@ -23,14 +23,14 @@ class TDLog: self.path = "" def info(self, info): - printf("%s %s" % (datetime.datetime.now(), info)) + print("%s %s" % (datetime.datetime.now(), info)) def sleep(self, sec): - printf("%s sleep %d seconds" % (datetime.datetime.now(), sec)) + print("%s sleep %d seconds" % (datetime.datetime.now(), sec)) time.sleep(sec) def debug(self, err): - printf("\033[1;36m%s %s\033[0m" % (datetime.datetime.now(), err)) + print("\033[1;36m%s %s\033[0m" % (datetime.datetime.now(), err)) def success(self, info): printf("\033[1;32m%s %s\033[0m" % (datetime.datetime.now(), info)) @@ -43,7 +43,7 @@ class TDLog: sys.exit(1) def printNoPrefix(self, info): - printf("\033[1;36m%s\033[0m" % (info)) + print("\033[1;36m%s\033[0m" % (info)) tdLog = TDLog() diff --git a/tests/test-all.sh b/tests/test-all.sh index 98ecd71dd8..ee1904ba7c 100755 --- a/tests/test-all.sh +++ b/tests/test-all.sh @@ -27,9 +27,9 @@ fi cd ../pytest if [ "$1" == "cron" ]; then - ./fulltest.sh 2>&1 | tee pytest-out.txt + ./fulltest.sh > /dev/null | tee pytest-out.txt else - ./smoketest.sh 2>&1 | tee pytest-out.txt + ./smoketest.sh > /dev/null | tee pytest-out.txt fi totalPySuccess=`grep 'successfully executed' pytest-out.txt | wc -l`