Skip to content

Commit 236dbc5

Browse files
committed
fix script to not end with backslash if theres no testpath (which is valid)
1 parent 415a801 commit 236dbc5

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 1.2.1 (unreleased)
44

5-
- nothing yet
5+
- Fix test-script to not end with backslash if there is no `testpaths` (which is valid).
66

77
## 1.2.0 (2025-06-04)
88

src/mxmake/templates/pytest-run-coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ coverage run \
2626
{% if omitpaths %}
2727
--omit=$omits \
2828
{% endif %}
29-
-m pytest \
29+
-m pytest {% if testpaths %}\{% endif %}
3030
{% for path in testpaths %}
3131
{{ path }}{% if not loop.last %} \{% endif %}
3232

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{% extends "env.sh" %}
22

33
{% block env_content %}
4-
pytest \
4+
5+
pytest {% if testpaths %}\{% endif %}
56
{% for path in testpaths %}
67
{{ path }}{% if not loop.last %} \{% endif %}
78

89
{% endfor %}
10+
11+
12+
913
{% endblock %}

0 commit comments

Comments
 (0)