summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-24 15:44:18 -0700
committerTim Smith <tsmith84@gmail.com>2020-03-24 15:44:18 -0700
commita737b6b1974f053117c8409c5a36f546bc843e03 (patch)
tree621833b2d2cb3b42dddb8238e16d83e30c60da7c
parent0632f9e682ac3123fa2502991647dfc3ba5255c8 (diff)
downloadchef-fix_windows_builds.tar.gz
Switch to RUBY_PLATFORM for the windows checkfix_windows_builds
Merging in this check broke the build tests on Windows hosts. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/support/platforms/win32/spec_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/platforms/win32/spec_service.rb b/spec/support/platforms/win32/spec_service.rb
index f43e4a15fb..a29a5c94a8 100644
--- a/spec/support/platforms/win32/spec_service.rb
+++ b/spec/support/platforms/win32/spec_service.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-if ChefUtils.windows?
+if RUBY_PLATFORM =~ /mswin|mingw|windows/
require "win32/daemon"
class SpecService < ::Win32::Daemon