Fix functional tests in the test suite.
ClosedPublic

Authored by ralph on Dec 17 2016, 2:14 PM.

Details

Summary

The issue is that the messaging plugins are defined as setuptools
entry-points, and those live in the .egg-info directory. If you're developing
locally, that directory is usually present in pwd due to `python setup.py
develop` or python setup.py egg-info. But in the spec file, we install to a
directory that is not in the PYTHONPATH. This change re-enables the -F
option but also specifies the PYTHONPATH so that the entry-points are found and
the tests pass.

This should fix T874.

Test Plan

Try building the rpm in mock. It works!

Diff Detail

Repository
rRSDB resultsdb
Branch
fix-tests (branched from develop)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 945
Build 945: arc lint + arc unit
ralph2 retitled this revision from to Fix functional tests in the test suite..Dec 17 2016, 2:14 PM
ralph2 updated this object.
ralph2 edited the test plan for this revision. (Show Details)
ralph2 added reviewers: mkrizek, jskladan, tflink.

Did not try to build the RPM, so I'm not acking - just a question though - is there a reasonable way to make this work (for development) without running python setup.py develop or python setup.py egg-info? If not, could you please also change the README to reflect this? Thanks!

mkrizek accepted this revision.Jan 2 2017, 11:46 AM

Works for me.

This revision is now accepted and ready to land.Jan 2 2017, 11:46 AM
ralph added a subscriber: ralph.Jan 6 2017, 6:48 PM

Well, I ran arc land, and it is up on origin develop branch now.. but this differential is still open for some reason.

ralph commandeered this revision.Jan 6 2017, 6:48 PM
ralph closed this revision.
ralph added a reviewer: ralph2.