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

Prevent running tests on wrong platforms #40

Open
climategadgets opened this issue Jan 23, 2019 · 1 comment
Open

Prevent running tests on wrong platforms #40

climategadgets opened this issue Jan 23, 2019 · 1 comment

Comments

@climategadgets
Copy link

Go can restrict compilation with build tags. It would be nice if the code refused to build/run tests on non-Raspberry, or at least non-ARM platforms.

// +build arm for any code that touches hardware would be a good safety net.

@drahoslove drahoslove assigned drahoslove and unassigned drahoslove Mar 19, 2019
@drahoslove
Copy link
Collaborator

This seems like a good idea. Do you think you could create a Pull request for 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

No branches or pull requests

2 participants