Commit 655b3edb authored by Tulio Ruiz's avatar Tulio Ruiz
Browse files

[FIX] Check if there is more than one app in main_app variable

parent 3856a276
Pipeline #56020 canceled with stage
......@@ -93,12 +93,17 @@ def check_envars():
def check_mainapp():
fValues = get_file_values()
main_app = fValues['MAIN_APP']
if isdir(main_app):
print(CHECK + 'Main app exists and match the one from your vars')
else:
print(CROSS + 'Got {} from your env vars, but it doesn\'t match any folder in you repo'.format(main_app) +
' Remember that the MAIN_APP is the app that will be installed and tested,' +
' this have to match one Odoo module in this repository')
apps = main_app.split(',')
fail = False
for app in apps:
if isdir(app):
print(CHECK + 'Main app "{}" exists and match the one from your vars'.format(app))
else:
print(CROSS + 'Got {} from your env vars, but it doesn\'t match any folder in you repo'.format(app) +
' Remember that the MAIN_APP is the app that will be installed and tested,' +
' this have to match one Odoo module in this repository')
fail = True
if fail:
exit(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment