Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720448 - rebar.eclass: tests are using the system-installed library, not the new one
Summary: rebar.eclass: tests are using the system-installed library, not the new one
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 720426
  Show dependency tree
 
Reported: 2020-05-02 11:09 UTC by Hanno Böck
Modified: 2020-05-04 09:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rebar run tests from current dir (rebar-eclass-run-tests-from-current-dir.diff,410 bytes, patch)
2020-05-02 11:09 UTC, Hanno Böck
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2020-05-02 11:09:36 UTC
Created attachment 635706 [details, diff]
rebar run tests from current dir

With a bump of the fast_tls package I noticed a curious bug which is a problem in the rebar eclass.
Running the tests seems to take the library from the system, not the one just built. This obviously makes little sense.

I'm proposing attached patch to fix this, which will set ERL_LIBS to . in case of unit tests.
Comment 1 Larry the Git Cow gentoo-dev 2020-05-04 09:01:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803cdc3720ca506b1e7f737d7b20d33b3b5e0495

commit 803cdc3720ca506b1e7f737d7b20d33b3b5e0495
Author:     Hanno Böck <hanno@gentoo.org>
AuthorDate: 2020-05-04 09:00:28 +0000
Commit:     Hanno Böck <hanno@gentoo.org>
CommitDate: 2020-05-04 09:00:28 +0000

    rebar.eclass: Run tests with newly compiled library.
    
    Closes: https://bugs.gentoo.org/720448
    Signed-off-by: Hanno Böck <hanno@gentoo.org>

 eclass/rebar.eclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)