mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Improve add-test and fix name of test
This commit is contained in:
parent
61dfebd299
commit
7c539fa475
@ -27,5 +27,12 @@ set -x
|
|||||||
touch ${TESTS_PATH}/${NEW_TEST_NO}_${FILENAME}.${FILEEXT}
|
touch ${TESTS_PATH}/${NEW_TEST_NO}_${FILENAME}.${FILEEXT}
|
||||||
if [[ $FILEEXT == "sh" ]] ; then
|
if [[ $FILEEXT == "sh" ]] ; then
|
||||||
chmod +x ${TESTS_PATH}/${NEW_TEST_NO}_${FILENAME}.${FILEEXT}
|
chmod +x ${TESTS_PATH}/${NEW_TEST_NO}_${FILENAME}.${FILEEXT}
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
echo '#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
# shellcheck source=../shell_config.sh
|
||||||
|
. "$CUR_DIR"/../shell_config.sh
|
||||||
|
' >> ${TESTS_PATH}/${NEW_TEST_NO}_${FILENAME}.${FILEEXT}
|
||||||
fi
|
fi
|
||||||
touch ${TESTS_PATH}/${NEW_TEST_NO}_${FILENAME}.reference
|
touch ${TESTS_PATH}/${NEW_TEST_NO}_${FILENAME}.reference
|
||||||
|
Loading…
Reference in New Issue
Block a user