Skip to content

Commit

Permalink
pytest: ignore _build dirs for all flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
bnavigator committed Nov 20, 2020
1 parent 6bb5f69 commit e90ea3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions macros/010-common-defs
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,17 @@
local args = rpm.expand("%**"); \
local broot = rpm.expand("%buildroot"); \
local intro = "%{python_expand PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}" .. broot .. "%{$python_sitelib} PYTHONDONTWRITEBYTECODE=1 "; \
intro = intro .. "pytest-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v "; \
local ignore_build = "--ignore=_build." .. rpm.expand("%pythons"):gsub("%s+", " --ignore=_build."); \
intro = intro .. "pytest-%{$python_bin_suffix} " .. ignore_build .. " -v "; \
print(rpm.expand(intro .. args .. "}")) \
}

%pytest_arch(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-=) %{lua:\
local args = rpm.expand("%**"); \
local broot = rpm.expand("%buildroot"); \
local intro = "%{python_expand PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}" .. broot .. "%{$python_sitearch} PYTHONDONTWRITEBYTECODE=1 "; \
intro = intro .. "pytest-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v "; \
local ignore_build = "--ignore=_build." .. rpm.expand("%pythons"):gsub("%s+", " --ignore=_build."); \
intro = intro .. "pytest-%{$python_bin_suffix} " .. ignore_build .. " -v "; \
print(rpm.expand(intro .. args .. "}")) \
}

Expand Down

0 comments on commit e90ea3c

Please sign in to comment.