Unverified Commit 8292709c authored by Massimiliano Pippi's avatar Massimiliano Pippi Committed by GitHub

Skip tests we cannot run on Drone (#309)

* skip tests we cannot run on Drone

* convert to bool before returning
parent 38e831ca
......@@ -23,7 +23,6 @@ steps:
- name: integration
image: arduino/arduino-cli:drone-1.0
failure: ignore # work in progress, we know some tests will fail at the moment
commands:
- pip install -r test/requirements.txt
- task test-integration
......
......@@ -6,6 +6,11 @@ import semver
from datetime import datetime
def running_on_ci():
val = os.getenv('APPVEYOR') or os.getenv('DRONE')
return val is not None
def test_command_help(run_command):
result = run_command('help')
assert result.ok
......@@ -62,7 +67,7 @@ def test_command_lib_search(run_command):
assert number_of_libs == number_of_libs_from_json
@pytest.mark.skipif(os.getenv('APPVEYOR'), reason="Appveyor VMs have no serial ports")
@pytest.mark.skipif(running_on_ci(), reason="VMs have no serial ports")
def test_command_board_list(run_command):
result = run_command('core update-index')
assert result.ok
......@@ -76,7 +81,7 @@ def test_command_board_list(run_command):
assert 'protocol_label' in port
@pytest.mark.skipif(os.getenv('APPVEYOR'), reason="Appveyor VMs have no serial ports")
@pytest.mark.skipif(running_on_ci(), reason="VMs have no serial ports")
def test_command_board_listall(run_command):
result = run_command('board listall')
assert result.ok
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment