File tree 2 files changed +11
-8
lines changed 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ def self.flag(name, text = nil)
42
42
attr_reader :last_msg
43
43
44
44
# set the command line flags (undefined for now).
45
- # These vary between gui/cli
46
- flag :get_pref
47
- flag :set_pref
48
- flag :save_prefs
49
- flag :use_board
50
- flag :install_boards
51
- flag :install_library
52
- flag :verify
45
+ # These vary between gui/cli. Inline comments added for greppability
46
+ flag :get_pref # flag_get_pref
47
+ flag :set_pref # flag_set_pref
48
+ flag :save_prefs # flag_save_prefs
49
+ flag :use_board # flag_use_board
50
+ flag :install_boards # flag_install_boards
51
+ flag :install_library # flag_install_library
52
+ flag :verify # flag_verify
53
53
54
54
def initialize
55
55
@prefs_cache = { }
Original file line number Diff line number Diff line change @@ -293,9 +293,12 @@ def allowable_unittest_files(paths)
293
293
return paths if @unittest_info [ :testfiles ] . nil?
294
294
295
295
ret = paths
296
+ # Check for array emptiness, otherwise nothing will be selected!
296
297
unless @unittest_info [ :testfiles ] [ :select ] . nil? || @unittest_info [ :testfiles ] [ :select ] . empty?
297
298
ret . select! { |p | unittest_info [ :testfiles ] [ :select ] . any? { |glob | p . basename . fnmatch ( glob ) } }
298
299
end
300
+
301
+ # It's OK for the :reject array to be empty, that means nothing will be rejected by default
299
302
unless @unittest_info [ :testfiles ] [ :reject ] . nil?
300
303
ret . reject! { |p | unittest_info [ :testfiles ] [ :reject ] . any? { |glob | p . basename . fnmatch ( glob ) } }
301
304
end
You can’t perform that action at this time.
0 commit comments