GetPoplog / Seed

Scripts for getting Poplog onto your Linux machine
MIT License
7 stars 3 forks source link

Run tests on local poplog build rather than using the system poplog #114

Closed willprice closed 3 years ago

willprice commented 3 years ago

By default the tests use which poplog to determine which poplog to invoke. Now this is acceptable if you run PATH=_build/poplog_base/pop/bin:$PATH pytest systests so that the tests will use the local build, however this is a pain to run yourself each time. Instead, it'd be better if we default to testing the built poplog--this is more inline with developer expectations. This commit implements this behaviour, and allows overriding by specifying a USE_SYSTEM_POPLOG env var whose value, when anything other than 0 or a case-insensitive false, will cause the tests to use the system poplog determined via which poplog.