File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def config_file_path=(rhs)
96
96
#
97
97
# @return [Pathname] the path to use for a given OS
98
98
def config_file_cli_param
99
- OS . linux ? ? config_file_path : @config_dir
99
+ OS . osx ? ? @config_dir : config_file_path
100
100
end
101
101
102
102
# Get an acceptable filename for use as a config file
Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ def config_fail_msg
78
78
expect ( config_dir ) . to exist
79
79
expect ( config_file ) . to exist
80
80
ret = ArduinoCI ::Host . run_and_capture ( *bug_753_cmd ( backend , config_file ) )
81
- if OS . linux?
82
- expect ( ret [ :out ] . lines [ 0 ] ) . to include ( config_success_msg ( config_file ) )
83
- else
81
+ if OS . osx?
84
82
expect ( ret [ :out ] . lines [ 0 ] ) . to include ( config_fail_msg )
83
+ else
84
+ expect ( ret [ :out ] . lines [ 0 ] ) . to include ( config_success_msg ( config_file ) )
85
85
end
86
86
end
87
87
end
@@ -102,10 +102,10 @@ def config_fail_msg
102
102
expect ( config_dir ) . to exist
103
103
expect ( config_file ) . to exist
104
104
ret = ArduinoCI ::Host . run_and_capture ( *bug_753_cmd ( backend , config_dir ) )
105
- if OS . linux?
106
- expect ( ret [ :out ] . lines [ 0 ] ) . to include ( config_fail_msg )
107
- else
105
+ if OS . osx?
108
106
expect ( ret [ :out ] . lines [ 0 ] ) . to include ( config_success_msg ( config_file ) )
107
+ else
108
+ expect ( ret [ :out ] . lines [ 0 ] ) . to include ( config_fail_msg )
109
109
end
110
110
end
111
111
end
You can’t perform that action at this time.
0 commit comments