[Bug 2217257] Review Request: python-nihtest - A testing tool for command line utilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2217257



--- Comment #14 from Sandro <gui1ty@xxxxxxxxxxxxx> ---
Thank you very much for the help and the links.

It's pretty much what I was thinking of. Patch the CMakeLists.txt file(s) to
make it work in the build environment without rebuilding the already build
binaries / modules.

I feel I'm almost there. However, I've hit a roadblock:

Traceback (most recent call last):
  File
"/builddir/build/BUILDROOT/python-nihtest-1.1.0-8.fc39.x86_64/usr/bin/nihtest",
line 5, in <module>
    from nihtest.__main__ import main
ModuleNotFoundError: No module named 'nihtest'

I defined the environment in the spec file before calling ctest (copied from
the %pyproject_check_import macro):

# Run tests using CMake
%if %{with tests}
  %cmake
  %cmake_build
  # Set up environment
  PATH="%{buildroot}%{_bindir}:$PATH"
 
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}"
  _PYTHONSITE="%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}"
  %ctest
%endif

Maybe I need to do that in the CMakeLists.txt. I'll dig some more tomorrow. Too
tired to continue now.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2217257

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202217257%23c14
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux