[PR #8325/feb443d2 backport][stable-7] Fix django_manage tests (#8327)

Fix django_manage tests (#8325)

Ensure that manage.py is executable.

(cherry picked from commit feb443d260)

Co-authored-by: Felix Fontein <felix@fontein.de>
pull/8335/head
patchback[bot] 2024-05-07 08:24:39 +02:00 committed by GitHub
parent 5a1ee4e3ee
commit 4b4a2a5977
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@
chdir: "{{ tmp_django_root.path }}/startproj" chdir: "{{ tmp_django_root.path }}/startproj"
cmd: "{{ tmp_django_root.path }}/venv/bin/django-admin startapp app1" cmd: "{{ tmp_django_root.path }}/venv/bin/django-admin startapp app1"
- name: Make manage.py executable
file:
path: "{{ tmp_django_root.path }}/startproj/test_django_manage_1/manage.py"
mode: "0755"
- name: Check - name: Check
community.general.django_manage: community.general.django_manage:
project_path: "{{ tmp_django_root.path }}/startproj/test_django_manage_1" project_path: "{{ tmp_django_root.path }}/startproj/test_django_manage_1"