Skip to content
Snippets Groups Projects

test execution does not modify sources

Merged Marcin requested to merge mi/problem_with_test_modified_sql into develop
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
  • 0316b5cb
    fix · 0316b5cb
    Marcin authored
@@ -68,6 +68,7 @@ test_extension_update() {
COPY_BUILD_PATH="${HAF_DIR}/src_copy/build"
rm -rf ${COPY_SRC_PATH}
mkdir -p ${COPY_SRC_PATH}
mkdir -p ${COPY_BUILD_PATH}
cp -a ${DIR}/. ${COPY_SRC_PATH}
@@ -85,7 +86,7 @@ test_extension_update() {
# old libhfm has to be removed so in case of an corrupted setup of haf the old libhfm won't be used
sudo rm -rf /usr/lib/postgresql/${POSTGRES_VERSION}/lib/libhfm-*
# modify the hived_api.sql file
echo -e "CREATE OR REPLACE FUNCTION hive.test() \n RETURNS void \n LANGUAGE plpgsql \n VOLATILE AS \n\$BODY\$ \nBEGIN \nRAISE NOTICE 'test'; \nEND; \n\$BODY\$;" >> "${COPY_SRC_PATH}/hive_fork_manager/hived_api.sql"
echo -e "CREATE OR REPLACE FUNCTION hive.test() \n RETURNS void \n LANGUAGE plpgsql \n VOLATILE AS \n\$BODY\$ \nBEGIN \nRAISE NOTICE 'test'; \nEND; \n\$BODY\$;" >> "${COPY_SRC_PATH}/src/hive_fork_manager/hived_api.sql"
# commit changes to make a new hash
git -C ${COPY_BUILD_PATH} config --global user.name "abc"
git -C ${COPY_BUILD_PATH} config --global user.email "abc@example.com"
Loading