Skip to content

Commit

Permalink
include some useful debugging output
Browse files Browse the repository at this point in the history
and don't capture_output from subprocess so that it ended up in stdout/stderr for debugging.
  • Loading branch information
derekk-nm committed Sep 27, 2024
1 parent c3cf2dc commit ae8e709
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions actions/testmo-create-resources/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ runs:
compose_testmo_resources_file.py \
--resources_json '${{ inputs.resources_json }}' \
--destination "${{ inputs.resources_file }}"
echo "resource file ${{ inputs.resources_json }} contents:\n"
cat "${{ inputs.resources_file }}\n"
shell: bash
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
default="testmo_resources.json",
type=str)

print(f"cwd: {pathlib.Path.cwd()}")
args = args_parser.parse_args()
fields = json.loads(args.resources_json)

Expand All @@ -45,9 +46,8 @@
testmo_command = ["npx", "testmo", "automation:resources:add-field"]

# run the command and raise any exceptions
result = subprocess.run( # noqa: S602
subprocess.run( # noqa: S602
testmo_command + testmo_args,
capture_output=True,
check=True,
cwd=pathlib.Path.cwd(),
shell=True
Expand Down

0 comments on commit ae8e709

Please sign in to comment.