Skip to content

Commit 4286604

Browse files
committed
(maint) Skip os facts in acceptance on Debian 11 - 4.x
1 parent 3a97223 commit 4286604

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

acceptance/lib/facter/acceptance/base_fact_utils.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,12 @@ def debian_expected_facts(agent)
106106
'kernelrelease' => /\d+\.\d+\.\d+/,
107107
'kernelversion' => /\d+\.\d+/,
108108
'kernelmajversion' => /\d+\.\d+/
109-
}
109+
}.reject do |fact, value|
110+
# Skip os fact matching on Debian 11 as it does not report the stable
111+
# version until its official release
112+
fact.start_with?('os.') if os_version == /11/
113+
end
114+
110115
expected_facts
111116
end
112117

0 commit comments

Comments
 (0)