[UPD] when using stop-after-init, enable no-http
- in many case, no need http when run with argument stop-after-init, because we want to execute without gui
This commit is contained in:
parent
0f8d5aea8e
commit
e2e7a61ad6
6 changed files with 9 additions and 8 deletions
1
Makefile
1
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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 $@
|
||||
|
|
|
|||
2
test.sh
2
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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue