Debug tests output

This commit is contained in:
David Murphy 2024-11-11 14:28:28 -07:00
parent 55f219224c
commit 1f885ee091
No known key found for this signature in database
GPG key ID: 9D7724F37A7424D8
3 changed files with 7 additions and 5 deletions

View file

@ -51,10 +51,6 @@ jobs:
echo "DGM pip test for distro-slug ${{ inputs.distro-slug }}"
echo "DGM doing break-system-packages for distro-slug ${{ inputs.distro-slug }}"
python3 -m pip install --break-system-packages -r tests/requirements.txt
else
echo "DGM plain pip for distro-slug ${{ inputs.distro-slug }}"
python3 -m pip install -r tests/requirements.txt
fi
- name: Install Python Dependencies without pip breakage
if: ${{ ( inputs.distro-slug != 'debian-11' ) && ( inputs.distro-slug != 'debian-12' ) && ( inputs.distro-slug != 'debian-13' ) && ( inputs.distro-slug != 'ubuntu-2404' ) }}

View file

@ -634,7 +634,9 @@ if [ "$ITYPE" = "latest" ] || [ "$ITYPE" = "default" ]; then
ONEDIR_REV="latest"
_ONEDIR_REV="latest"
ITYPE="onedir"
shift
if [ "$#" -gt 0 ];then
shift
fi
echodebug "using ITYPE onedir for input 'latest' or 'default', cmd args left ,$#,"
# If doing a git install, check what branch/tag/sha will be checked out

View file

@ -26,6 +26,10 @@ def run_salt_call(cmd):
"""
cmd.append("--out=json")
result = subprocess.run(cmd, capture_output=True, text=True)
print(
f"DGM run_salt_call, cmd '{cmd}', result '{result}', stdout '{result.stdout}'",
flush=True,
)
json_data = json.loads(result.stdout)
return json_data["local"]