-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from BastianStender/bst/linting
Bug fixes, linting, drop python3.4 and Travis rework
- Loading branch information
Showing
107 changed files
with
652 additions
and
764 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
language: python | ||
python: | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
before_install: | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y libow-dev | ||
install: | ||
- pip install --upgrade setuptools | ||
- pip install --upgrade pytest pytest-mock pytest-cov coveralls codecov | ||
- pip install -r dev-requirements.txt | ||
- pip install -r travis-requirements.txt | ||
- pip install -e . | ||
script: | ||
- pytest --cov-config .coveragerc --cov=labgrid | ||
- python setup.py build_sphinx | ||
- make -C man all | ||
- git diff | ||
- git diff-index --quiet HEAD -- | ||
- git --no-pager diff --exit-code | ||
after_success: | ||
- coveralls | ||
- codecov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
-r requirements.txt | ||
setuptools>=38.0.0 | ||
crossbar==17.12.1 | ||
# For crossbar | ||
idna==2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
def test_barebox(command): | ||
stdout, stderr, returncode = command.run('version') | ||
assert returncode == 0 | ||
assert len(stdout) > 0 | ||
assert len(stderr) == 0 | ||
assert stdout | ||
assert not stderr | ||
assert 'barebox' in '\n'.join(stdout) | ||
|
||
stdout, stderr, returncode = command.run('false') | ||
assert returncode == 1 | ||
assert len(stdout) == 0 | ||
assert len(stderr) == 0 | ||
assert not stdout | ||
assert not stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import pytest | ||
|
||
|
||
def test_bootchooser(command): | ||
stdout, stderr, returncode = command.run('bootchooser -i') | ||
if returncode == 127: | ||
pytest.skip("bootchooser command not available") | ||
assert returncode == 0 | ||
assert len(stderr) == 0 | ||
assert not stderr | ||
assert stdout[0].startswith('Good targets') | ||
assert stdout[1] != 'none' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import time | ||
from datetime import datetime | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
def test_shell(command): | ||
stdout, stderr, returncode = command.run('cat /proc/version') | ||
assert returncode == 0 | ||
assert len(stdout) > 0 | ||
assert len(stderr) == 0 | ||
assert stdout | ||
assert not stderr | ||
assert 'Linux' in stdout[0] | ||
|
||
stdout, stderr, returncode = command.run('false') | ||
assert returncode != 0 | ||
assert len(stdout) == 0 | ||
assert len(stderr) == 0 | ||
assert not stdout | ||
assert not stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,3 @@ def test_usb(target): | |
def test_mxs_load(target): | ||
bp = target.get_driver('BootstrapProtocol') | ||
bp.load() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.