Skip to content

Commit

Permalink
Fix addon selection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Mar 2, 2023
1 parent 55b5d64 commit 9f97731
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/oca_init_test_database
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -ex

oca_wait_for_postgres

if [-z "${INCLUDE}"]; then
if [ -n "${INCLUDE}" ]; then
ADDONS=$(manifestoo --select-include "${INCLUDE}" --select-exclude "${EXCLUDE}" list-depends --separator=,)
else
ADDONS=$(manifestoo --select-addons-dir ${ADDONS_DIR} --select-exclude "${EXCLUDE}" list-depends --separator=,)
Expand Down
3 changes: 2 additions & 1 deletion bin/oca_run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
set -ex

oca_wait_for_postgres
if [-z "${INCLUDE}"]; then

if [ -n "${INCLUDE}" ]; then
ADDONS=$(manifestoo --select-include "${INCLUDE}" --select-exclude "${EXCLUDE}" list --separator=,)
else
ADDONS=$(manifestoo --select-addons-dir ${ADDONS_DIR} --select-exclude "${EXCLUDE}" list --separator=,)
Expand Down

0 comments on commit 9f97731

Please sign in to comment.