File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 23
23
24
24
- name : integration
25
25
image : arduino/arduino-cli:drone-1.0
26
- failure : ignore # work in progress, we know some tests will fail at the moment
27
26
commands :
28
27
- pip install -r test/requirements.txt
29
28
- task test-integration
Original file line number Diff line number Diff line change 6
6
from datetime import datetime
7
7
8
8
9
+ def running_on_ci ():
10
+ val = os .getenv ('APPVEYOR' ) or os .getenv ('DRONE' )
11
+ return val is not None
12
+
13
+
9
14
def test_command_help (run_command ):
10
15
result = run_command ('help' )
11
16
assert result .ok
@@ -62,7 +67,7 @@ def test_command_lib_search(run_command):
62
67
assert number_of_libs == number_of_libs_from_json
63
68
64
69
65
- @pytest .mark .skipif (os . getenv ( 'APPVEYOR' ), reason = "Appveyor VMs have no serial ports" )
70
+ @pytest .mark .skipif (running_on_ci ( ), reason = "VMs have no serial ports" )
66
71
def test_command_board_list (run_command ):
67
72
result = run_command ('core update-index' )
68
73
assert result .ok
@@ -76,7 +81,7 @@ def test_command_board_list(run_command):
76
81
assert 'protocol_label' in port
77
82
78
83
79
- @pytest .mark .skipif (os . getenv ( 'APPVEYOR' ), reason = "Appveyor VMs have no serial ports" )
84
+ @pytest .mark .skipif (running_on_ci ( ), reason = "VMs have no serial ports" )
80
85
def test_command_board_listall (run_command ):
81
86
result = run_command ('board listall' )
82
87
assert result .ok
You can’t perform that action at this time.
0 commit comments