Skip to content

Commit

Permalink
updated hab test for linux platorms
Browse files Browse the repository at this point in the history
Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Feb 5, 2024
1 parent 2d54148 commit f98770e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/main-chef-wrapper/platform-lib/version_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func showVersionViaVersionManifest() {
dist.ClientProduct: dist.ClientGem,
dist.InspecProduct: dist.InspecGem,
dist.CliProduct: dist.CliGem,
dist.HabProduct: dist.HabSoftwareName,
// dist.HabProduct: dist.HabSoftwareName,
"Test Kitchen": "test-kitchen",
"Cookstyle": "cookstyle",
}
Expand Down
3 changes: 2 additions & 1 deletion omnibus/verification/verify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
require "chef-cli/exceptions"
require "chef-cli/helpers"


require_relative "component_test"

module ChefWorkstation
Expand Down Expand Up @@ -290,7 +291,7 @@ def components

sh!("#{usr_bin_path("ohai")} -v")
sh!("#{usr_bin_path("inspec")} version")
sh!("#{usr_bin_path("hab")} --version") unless linux?
sh!("#{usr_bin_path("hab")} --version") unless RUBY_PLATFORM =~ /linux/
end

# Test blocks are expected to return a Mixlib::ShellOut compatible
Expand Down

0 comments on commit f98770e

Please sign in to comment.