Skip to content

Commit

Permalink
test to disable the output
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Feb 12, 2024
1 parent 306e1c4 commit 65e29cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
# python ./aws-iot-device-sdk-js-v2/utils/run_in_ci.py --file ./aws-iot-device-sdk-js-v2/.github/workflows/ci_run_pubsub_cfg.json
- name: run Windows Certificate Connect sample
run: |
pwsh.exe -Command "$global:PSNativeCommandUseErrorActionPreference = $false
pwsh.exe -Command "$global:PSNativeCommandUseErrorActionPreference = $false"
python ./aws-iot-device-sdk-js-v2/utils/run_in_ci.py --file ./aws-iot-device-sdk-js-v2/.github/workflows/ci_run_windows_cert_connect_cfg.json
- name: configure AWS credentials (Device Advisor)
uses: aws-actions/configure-aws-credentials@v1
Expand Down
4 changes: 2 additions & 2 deletions utils/run_in_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def make_windows_pfx_file(certificate_file_path, private_key_path, pfx_file_path
if os.path.isfile(copy_path[0] + ".key"):
os.remove(copy_path[0] + ".key")

test_ls_run = subprocess.run(args=["pwsh.exe", "-o Text", "-Command", "{\"ls\"}"], shell=True, capture_output=True, text=True)
test_ls_run = subprocess.run(args=["pwsh.exe", "-Command", "{\"ls\"}"], shell=True, capture_output=True, text=True)
print("LS TEST out: " + str(test_ls_run.stdout))
print("LS TEST err: " + str(test_ls_run.stderr))

Expand Down Expand Up @@ -174,7 +174,7 @@ def make_windows_pfx_file(certificate_file_path, private_key_path, pfx_file_path
print ("Certificate imported to Windows Certificate Store successfully")

# Get the certificate thumbprint from the output:
get_item_thumbprint_arguments = ["pwsh.exe", "-Command", "{\"Get-ChildItem -Path Cert:\\" + pfx_certificate_store_location + "\"}"]
get_item_thumbprint_arguments = ["pwsh.exe", "-Command", "{\"Get-ChildItem -Path Cert:/" + pfx_certificate_store_location + "\"}"]
get_thumbprint_pfx_run = subprocess.run(args=get_item_thumbprint_arguments, shell=True, capture_output=True, text=True)
print("get out: " + str(get_thumbprint_pfx_run.stdout))
print("get err: " + str(get_thumbprint_pfx_run.stderr))
Expand Down

0 comments on commit 65e29cd

Please sign in to comment.