diff --git a/Makefile b/Makefile index 708b908..1471897 100644 --- a/Makefile +++ b/Makefile @@ -938,6 +938,7 @@ config_install: .PHONY: config_update config_update: + # Need http to configure the file config.conf, or will disable it ./run.sh -c config.conf -s --stop-after-init .PHONY: config_update_over_proxy diff --git a/doc/MIGRATION.md b/doc/MIGRATION.md index b6f65c3..4c74e2e 100644 --- a/doc/MIGRATION.md +++ b/doc/MIGRATION.md @@ -52,7 +52,7 @@ Execute migration with OpenUpgrade. ```bash make config_gen_migration -./.venv/bin/python ./script/OCA_OpenUpgrade/odoo-bin -c ./config.conf --update all --stop-after-init -d BD +./.venv/bin/python ./script/OCA_OpenUpgrade/odoo-bin -c ./config.conf --no-http --update all --stop-after-init -d BD ``` ## Migration Odoo 13 to Odoo 14 @@ -61,5 +61,5 @@ Replace BD to your database name. ```bash make config_gen_migration -./run.sh --upgrade-path=./script/OCA_OpenUpgrade/openupgrade_scripts/scripts --update all --stop-after-init --load=base,web,openupgrade_framework -d BD +./run.sh --upgrade-path=./script/OCA_OpenUpgrade/openupgrade_scripts/scripts --update all --no-http --stop-after-init --load=base,web,openupgrade_framework -d BD ``` diff --git a/doc/PRODUCTION.md b/doc/PRODUCTION.md index 45b3066..f9b6e93 100644 --- a/doc/PRODUCTION.md +++ b/doc/PRODUCTION.md @@ -112,7 +112,7 @@ database. WARNING, this is not safe for production, you will expose all data. Update all features. ```bash -./run.sh --limit-time-real 99999 --stop-after-init -u all -d DATABASE +./run.sh --limit-time-real 99999 --no-http --stop-after-init -u all -d DATABASE ``` # Postgresql diff --git a/doc/RUN.md b/doc/RUN.md index 7e74319..f24ad4a 100644 --- a/doc/RUN.md +++ b/doc/RUN.md @@ -49,17 +49,17 @@ Great idea to run it when updating Odoo, it updates each module database. First execution, install you requirements, choose a new database. ```bash -./run.sh -d [DATABASE] -i [module to test] --test-enable --stop-after-init --log-level=test +./run.sh -d [DATABASE] -i [module to test] --test-enable --no-http --stop-after-init --log-level=test ``` Execute your test on a specific module. ```bash -./run.sh -d [DATABASE] -u [module to test] --test-enable --stop-after-init --log-level=test +./run.sh -d [DATABASE] -u [module to test] --test-enable --no-http --stop-after-init --log-level=test ``` Execute your test on a specific module with tags. ```bash -./run.sh -d [DATABASE] -u [module to test] --test-enable --stop-after-init --log-level=test --test-tags [module_name][tags] +./run.sh -d [DATABASE] -u [module to test] --test-enable --no-http --stop-after-init --log-level=test --test-tags [module_name][tags] ``` diff --git a/script/database/migrate_prod_to_test.sh b/script/database/migrate_prod_to_test.sh index 83381ab..9348750 100755 --- a/script/database/migrate_prod_to_test.sh +++ b/script/database/migrate_prod_to_test.sh @@ -5,4 +5,4 @@ if [ $# -lt 1 ]; then exit 1 fi source ./.venv/bin/activate -python3 ./odoo/odoo-bin -c ./config.conf --limit-time-real 99999 --limit-time-cpu 99999 --stop-after-init -i user_test,disable_mail_server,disable_auto_backup --dev prod -d $@ +python3 ./odoo/odoo-bin -c ./config.conf --limit-time-real 99999 --limit-time-cpu 99999 --no-http --stop-after-init -i user_test,disable_mail_server,disable_auto_backup --dev prod -d $@ diff --git a/test.sh b/test.sh index e1573d3..0bcc9be 100755 --- a/test.sh +++ b/test.sh @@ -14,7 +14,7 @@ if [ ! -f "${CONFIG_PATH}" ]; then fi fi -coverage run -p ./odoo/odoo-bin -c "${CONFIG_PATH}" --limit-time-real 99999 --limit-time-cpu 99999 --log-level=test --test-enable --stop-after-init "$@" +coverage run -p ./odoo/odoo-bin -c "${CONFIG_PATH}" --limit-time-real 99999 --limit-time-cpu 99999 --log-level=test --test-enable --no-http --stop-after-init "$@" retVal=$? if [[ $retVal -ne 0 ]]; then echo "${Red}Error${Color_Off} run.sh"