summaryrefslogtreecommitdiff
path: root/spec/support/shared/functional/windows_script.rb
diff options
context:
space:
mode:
authorneha-p6 <neha.pansare@progress.com>2022-07-22 19:52:22 +0530
committerGitHub <noreply@github.com>2022-07-22 19:52:22 +0530
commit7102e04a23adcf2399e2b3e4ee65dbe3508dcb04 (patch)
tree73d3f3d04874dad01a32ef2be7f0c77644caa7ef /spec/support/shared/functional/windows_script.rb
parent0bf13f7da5f9e24c99d6ea5a4e98de0c1e563d71 (diff)
downloadchef-7102e04a23adcf2399e2b3e4ee65dbe3508dcb04.tar.gz
Revert "Revert "Use new msys2 based devkit for windows" (#13063)" (#13097)
This reverts commit 4797e01535af8e33ace9ef3a7404dd8256913bce.
Diffstat (limited to 'spec/support/shared/functional/windows_script.rb')
-rw-r--r--spec/support/shared/functional/windows_script.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared/functional/windows_script.rb b/spec/support/shared/functional/windows_script.rb
index 151ad2387c..1db85e35f5 100644
--- a/spec/support/shared/functional/windows_script.rb
+++ b/spec/support/shared/functional/windows_script.rb
@@ -163,7 +163,7 @@ shared_context Chef::Resource::WindowsScript do
describe "when the run action is invoked on Windows" do
it "executes the script code" do
- resource.code("whoami > \"#{script_output_path}\"")
+ resource.code("chcp > \"#{script_output_path}\"")
resource.returns(0)
resource.run_action(:run)
end
@@ -199,7 +199,7 @@ shared_context Chef::Resource::WindowsScript do
end
it "executes the script code" do
- resource.code("whoami > \"#{script_output_path}\"")
+ resource.code("chcp > \"#{script_output_path}\"")
resource.returns(0)
resource.run_action(:run)
end