rpm-software-management / spec-cleaner

spec-cleaner
BSD 3-Clause "New" or "Revised" License
27 stars 33 forks source link

recognize unittest calls #285

Closed MeggyCal closed 3 years ago

MeggyCal commented 3 years ago

There are new macros %pyunittest and %pyunittest_arch in python-rpm-macros. Recognize the calls in *spec files.

It should break only few things, if any.

scarabeusiv commented 3 years ago

Also please provide testcase with expected before and after lines.

scarabeusiv commented 3 years ago

Hmm only question i now have is why it eats up that -v param that is no longer part of the pyunittest macro due to the issues it caused. Shouldn't it keep that?

MeggyCal commented 3 years ago

you are right, maybe it should keep it to preserve the behaviour before/after. It also eats the 'discover' command, inwhich case it is unclear to me whether it should preserve it as well. Pro: even less possible changes in the behaviour Contra: weird looking (and longer) command in spec.

MeggyCal commented 3 years ago

I got an information the discovery is already in the definition of the macro.