Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox-envfile: add support for env file #216

Merged
merged 1 commit into from
Sep 28, 2021
Merged

Conversation

jia200x
Copy link
Member

@jia200x jia200x commented Apr 27, 2021

Contribution description

Some tests require an extended list of environment variables (e.g LoRaWAN tests).
This PR adds https://github.com/seanh/tox-envfile/blob/master/tox_envfile.py in order to be able to store these environment variables in an env file.

Due to limitations in the original pkg, the env file is named ".devdata.env" instead of the standard ".env". Maybe we can upstream this change at some point...

Testing

Copy the sample environment file:

cp .devdata.env.sample .devdata.env

And set RIOTBASE accordingly. Simply calling "tox" shouldn't complain that RIOTBASE is missing.

@fjmolinas
Copy link
Contributor

@jia200x please rebase!

@miri64
Copy link
Member

miri64 commented Jul 15, 2021

Needs another rebase. If done, I think this can be merged.

@fjmolinas
Copy link
Contributor

Rebased

Copy link
Member

@miri64 miri64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still a good idea.

@miri64
Copy link
Member

miri64 commented Sep 27, 2021

However, pylint complains about missing f-strings... again :-/

@fjmolinas
Copy link
Contributor

rebased...

@miri64 miri64 merged commit d9a83ec into RIOT-OS:master Sep 28, 2021
@fjmolinas
Copy link
Contributor

Thanks @jia200x! Really cool to have this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants